File overwritting
Describe the bug Overwritting a file using this app results in strange behavior.
To Reproduce Steps to reproduce the behavior:
- Create file 1, with the following content:
12345
- Create file 2, with the following content:
000
- Overwrite file 1 with file 2.
- The file 1 becomes:
00045
Expected behavior
000
Smartphone (please complete the following information):
- Device: HTC U12 Life
- OS: Android 8.1
- Rooted: No
- Version: 3.7.2
Additional context It must resulted from not removing the original file when overwritting.
okay, I can confirm this happens on the current master. is this somehow related to #3295?
@sls1005 may you please give some pic's of steps that you followed to produce the issue ?
@dhruvpatidar359 I feel like the steps given would be sufficient to reproduce the issue.
- Create a file named
dir1/a.txt. - With a text editor, write
12345intodir1/a.txt, then save it. - Create a file named
dir2/a.txt. - With a text editor, write
000intodir2/a.txt, then save it. - Use Amaze to copy
dir2/a.txtintodir1. - When it asks about whether to overwrite, tap
OVERWRITE - Use a text editor to see
dir1/a.txt. - See
00045.
However, if you remove and copy files manually, you see no bug. So it must comes from not erasing the original file.
I think this issue can be solved by changing some code in the class PrepareCopyTask.java
Hey @VishnuSanal please assign this to me , i think i can work on this