Duplicacy restore with read-only files on Windows (Failed to open for in-place writing)




I’ve found a small issue when restoring a file which already exists and is read-only.

The original file is read-only at source and is backed up with that flag so when restored the first time it works and creates a read only file, however when restoring again with the -overwrite flag I get the error

Failed to open the file E:\Restore\file.txt for in-place writing

It would be good if -overwrite would still update the file, or perhaps if there was another flag which could allow a force-overwrite of read only files.