mirror of
https://github.com/restic/restic.git
synced 2026-02-24 17:56:24 +00:00
* When a directory already exists, CreateDirAt returns an error stating so * This means that the restoreMetadata step is skipped, so for directories which already exist no file permissions, owners, groups, etc will be restored on them * Not returning the error if it's a "directory exists" error means the metadata will get restored * It also removes the superfluous "error for ...: mkdir ...: file exists" messages * This makes the behaviour of directories consistent with that of files (which always have their content & metadata restored, regardless of whether they existed or not)