ERROR Delete folder before delete files inside

Get help for specific problems
Posts: 4
Joined: 24 Nov 2011

nick2011

FreeFile Sync version 5.11
Error: Cannot delete directory Windows Error Code 145: The directory is not empty

The problem is that FFS try to delele folder and after that delete files inside.

How to avoid these problem ?
User avatar
Site Admin
Posts: 7212
Joined: 9 Dec 2007

Zenju

Usually this is caused by some application (often Windows Explorer) having a handle to a already deleted subdirectory still open. Once Explorer detects that the directory is deleted it will update its view and release the handle, but this is too late for FFS which already detected the error. Pressing retry in FFS will generally work now.
Posts: 4
Joined: 24 Nov 2011

nick2011

I have a script doing that (scheduled task) so I receive this error very often.

Any workaround for this ?
User avatar
Site Admin
Posts: 7212
Joined: 9 Dec 2007

Zenju

Currently the best thing is to "retry" either manually or via script that restarts the sync. One more reason for:
[404, Invalid URL: https://sourceforge.net/p/freefilesync/feature-requests/257/]