owncloud / android

:phone: The ownCloud Android App
GNU General Public License v2.0
3.85k stars 3.06k forks source link

[BUG] Incorrect folder size after a move operation #4505

Open joragua opened 3 weeks ago

joragua commented 3 weeks ago

Actual behaviour

When a file is moved to a folder which contains the same file and it's replaced, the folder size is not displayed correctly (F.ex: the folder size is 4MB instead of 2MB. The file is duplicated). It's necessary to refresh the folder to update the folder size, but this is not possible without connection.

Expected behaviour

The folder size will be displayed correctly after a replace in move operation.

Steps to reproduce

  1. Moved a file to a folder which contains the same file.
  2. Select Replace in the warning dialog.

https://github.com/user-attachments/assets/cb6c1bcb-ed69-4ee2-b4a9-aef7b225264c

tuu81054 commented 2 weeks ago

Actual behaviour

When a file is moved to a folder which contains the same file and it's replaced, the folder size is not displayed correctly (F.ex: the folder size is 4MB instead of 2MB. The file is duplicated). It's necessary to refresh the folder to update the folder size, but this is not possible without connection.

Expected behaviour

The folder size will be displayed correctly after a replace in move operation.

Steps to reproduce

  1. Moved a file to a folder which contains the same file.
  2. Select Replace in the warning dialog.

    Screen_recording_20241029_145806.mp4

tuu81054 commented 2 weeks ago

Actual behaviour

When a file is moved to a folder which contains the same file and it's replaced, the folder size is not displayed correctly (F.ex: the folder size is 4MB instead of 2MB. The file is duplicated). It's necessary to refresh the folder to update the folder size, but this is not possible without connection.

Expected behaviour

The folder size will be displayed correctly after a replace in move operation.

Steps to reproduce

  1. Moved a file to a folder which contains the same file.
  2. Select Replace in the warning dialog.

Screen_recording_20241029_145806.mp4

joragua commented 2 weeks ago

Hello @tuu81054! If you have some questions about this issue or if you want to contribute, feel free to comment here! 😄