mirror of
https://github.com/graysky2/anything-sync-daemon.git
synced 2026-03-01 18:23:30 +01:00
- During unsync, it was trying to remove all the directories in all the directories instead of just the directory which had been unsynced - In rare scenarios when some race condition occurs, the directory as well as the backup directory both of them existed which caused the move to fail. So, during ungraceful state check, since we have a backup, We can delete the directory so that the move is successful NOTE: This might still fail if in the short period of time, any other process/OS creates our sync directory again before the move is done ( This race can only be fixed by bind mounting suggestions I think )