Lymphatus / CaesiumPH

Lossless JPEG compression for photographers and webmasters
http://saerasoft.com/caesium/ph
GNU General Public License v3.0
90 stars 11 forks source link

Deletes files when optimizing a large batch #18

Open Dinoguy1000 opened 6 years ago

Dinoguy1000 commented 6 years ago

I tried using this to optimize over 5000 files spread across 36 folders in a single batch, but it deleted a large number of the files, reporting 100% savings for them. I had it set to overwrite the files and to walk through subfolders (all the folders were contained in a single parent folder that I imported), but all other settings were default. This is on Windows 10.

Dinoguy1000 commented 6 years ago

This just happened again, with a 130-file batch. Again, CaesiumPH was set to overwrite files, but in this case all the files were in a single folder, and they were added directly to the list instead of letting CaesiumPH walk through the folder itself.

Both of these cases share the commonality that the files in question are in a Google Drive folder, with the Google Drive Backup and Sync utility running, and it hasn't happened with files located elsewhere (yet), so I'm guessing that has something to do with it.

Dinoguy1000 commented 4 years ago

I've thought about this a bit more in the years since reporting it, and come up with one way it could happen: if CaesiumPH deletes a file when it overwrites the file, the Google Drive Backup and Sync utility may be syncing the file deletion and interfering with CaesiumPH writing the optimized file back to disk somehow. This is of course conjecture; I don't actually know how CaesiumPH overwrites the file, or how the Backup and Sync utility works.

skycommand commented 3 years ago

It happened to me today. I lost a very large number of files. I was lucky to have them on a local backup. However, unlike @Dinoguy1000, my files were not in a Google Drive folder. They were just on the disk.