Skip to content

Conversation

@9-2-1
Copy link

@9-2-1 9-2-1 commented Oct 25, 2025

Restoring will fail because the file have read-only attribute or read-only permission.

As enabled -overwrite and restore with permission, restoring should overcome this, by set permission to read and write before overwriting.

The same applies to deleting extra files. Grant read and write permission before deleting.

In addition, it's confusing before as failing to delete extra files will be silently ignored. Now it log a warning if here are any errors.

9-2-1 added 2 commits October 25, 2025 17:41
Prevent "failed to open" because of readonlys
Perm will be fixed by RestoreMetadata.
A Windows problem
By the way, deletion never silently failed.
@CLAassistant
Copy link

CLAassistant commented Oct 25, 2025

CLA assistant check
All committers have signed the CLA.

@gilbertchen
Copy link
Owner

This pull request has been mentioned on Duplicacy Forum. There might be relevant details there:

https://forum.duplicacy.com/t/access-is-denied-error-while-restoring-into-folder-with-files-having-read-only-attributes/10640/1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants