harsimrans / DropboxSyncer

dropbox-sync: Automatic RealTime Sync for Dropbox folders
MIT License
16 stars 6 forks source link

Issue with syncing - will delete files from dropbox! #23

Open lfcstreet opened 4 years ago

lfcstreet commented 4 years ago

Hi

Thank you for this useful script. Wanted to report an issue. Say your local folder is empty. Try to run the script to sync the local and DB folder. As it starts to download from DB, immediately cancel it (before all downloads complete) using Control C. Then try rerunning the script - this time the script will start deleting files from DB. The timestamp in .B_sync is the issue.

For now I solved this by commenting out the write in the 'except IOError:' in initial_check function. This write should only happen once the folders are in sync, not at the beginning.

Thank you sanu