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.
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