warning

Get help for specific problems
Posts: 1
Joined: 22 Feb 2025

evasta

I'm trying to compare two folders to see if they have the same files and it gives me the following error
cannot set directory locks for the following folders :

cannot write file "\\192.168.1.100\data\sync.ffs_lock"
error_write_protect:the media is write protected.[CreateFile]
User avatar
Posts: 2946
Joined: 22 Aug 2012

Plerry

By default, FreeFileSync (FFS) "locks" the left and right location(s) during a Compare and Sync.
See the description of the LockDirectoriesDuringSync flag.
FFS does so by writing a sync.ffs_lock file to the left and right base directory/directories, and deletes those files upon completion of the sync.
Apparently your \\192.168.1.100\data\ location is write protected, so FFS can not write its sync.ffs_lock file there.

Note that the message is a warning, not an error. Your sync will run just as well.
But if multiple FFS syncs are run concurrently involving the same location(s) unexpected sync behavior might be the result.
As stated, you can ignore the warning and simply run your sync (without the protection against the potential impact of concurrent syncs).
Or you can set the LockDirectoriesDuringSync flag to false. But be aware: these flags are global settings and will apply to all your FFS syncs, not just the one at hand.