cloudcmd icon indicating copy to clipboard operation
cloudcmd copied to clipboard

Files get deleted on aborting move

Open DunklerPhoenix opened this issue 1 year ago • 5 comments

  • Version (cloudcmd -v): 17.0
  • Node Version node -v:
  • OS (uname -a on Linux): debian docker
  • Browser name/version: chrome
  • Used Command Line Parameters:
  • Changed Config:

Heho I have a source folder with a subfolder that contains 12 files with a total size of about 10GB. If I move this folder to an rclone mount which cache dir is on another drive and abort the proccess then the folder + subfolder + files in source get removed.

Is this behavior set via config or is this a bug?

DunklerPhoenix avatar Dec 27 '23 06:12 DunklerPhoenix

There was such an error in #389, but it was fixed, is this also reproduced when you have much more files? How many percent you abort on? If it 99% - it is expected behavior because this is move: file removed after copy.

coderaiser avatar Dec 27 '23 11:12 coderaiser

Yes I saw this issue. I didn't try it with many files yet, but with the constelation above it happens between 3% and 30% progress

Had this problem 3 times until now

DunklerPhoenix avatar Dec 27 '23 11:12 DunklerPhoenix

You can add test here https://github.com/cloudcmd/move-files, better to keep files size minimal (couple kb).

coderaiser avatar Dec 27 '23 11:12 coderaiser

Sry didn't understand what you meant with that ^^'

Should I run this code? Or should I add a test case in that repo (don't know how)?

I'm confused rn

DunklerPhoenix avatar Dec 27 '23 11:12 DunklerPhoenix

Could you reproduce the same with lots of small files? around 100.

coderaiser avatar Dec 27 '23 19:12 coderaiser

Closed due to a long time of inactivity 🏝

coderaiser avatar Mar 16 '24 09:03 coderaiser