stepping-stone / sepiola

Sepiola - Online Backup Client
http://www.sepiola.org/
GNU General Public License v2.0
5 stars 2 forks source link

rsync leaves partially downloaded files when cancelling a restore #78

Open dev-zero opened 8 years ago

dev-zero commented 8 years ago

When rsync does an up- or download, it does not write the file directly, but creates a file .originalname.RANDOMCHARS and renames it to originalname once successfully fully transferred.

When cancelling a restore with the Cygwin rsync, rsync leaves the temporary files around:

screenshot_win7_2016-11-26_22 16 38

Might have something to do with Cygwin and/or how Sepiola kills the process.

dev-zero commented 8 years ago

the problem is, that Windows (7) exhibits really strange behaviour wrt those files: a directory which contains such temporary files can not be deleted (generic permission denied) while the single files can be deleted, but re-appear when refreshing the directory listing in the Windows file explorer.