AmazeFileManager icon indicating copy to clipboard operation
AmazeFileManager copied to clipboard

File overwritting

Open sls1005 opened this issue 3 years ago • 1 comments

Describe the bug Overwritting a file using this app results in strange behavior.

To Reproduce Steps to reproduce the behavior:

  1. Create file 1, with the following content:
12345
  1. Create file 2, with the following content:
000
  1. Overwrite file 1 with file 2.
  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.

sls1005 avatar Sep 20 '22 15:09 sls1005

okay, I can confirm this happens on the current master. is this somehow related to #3295?

VishnuSanal avatar Sep 21 '22 13:09 VishnuSanal

@sls1005 may you please give some pic's of steps that you followed to produce the issue ?

dhruvpatidar359 avatar Sep 23 '22 03:09 dhruvpatidar359

@dhruvpatidar359 I feel like the steps given would be sufficient to reproduce the issue.

VishnuSanal avatar Sep 23 '22 05:09 VishnuSanal

  1. Create a file named dir1/a.txt.
  2. With a text editor, write 12345 into dir1/a.txt, then save it.
  3. Create a file named dir2/a.txt.
  4. With a text editor, write 000 into dir2/a.txt, then save it.
  5. Use Amaze to copy dir2/a.txt into dir1.
  6. When it asks about whether to overwrite, tap OVERWRITE
  7. Use a text editor to see dir1/a.txt.
  8. See 00045.

However, if you remove and copy files manually, you see no bug. So it must comes from not erasing the original file.

sls1005 avatar Sep 23 '22 05:09 sls1005

I think this issue can be solved by changing some code in the class PrepareCopyTask.java

dhruvpatidar359 avatar Dec 27 '22 05:12 dhruvpatidar359

Hey @VishnuSanal please assign this to me , i think i can work on this

dhruvpatidar359 avatar Dec 27 '22 05:12 dhruvpatidar359