mirror of
https://github.com/jkl1337/duplicacy.git
synced 2026-01-04 04:34:45 -06:00
Keep and restore attributes when no patterns provided to the restore command
This commit is contained in:
@@ -303,12 +303,8 @@ func (manager *SnapshotManager) DownloadSnapshotFileSequence(snapshot *Snapshot,
|
||||
return false
|
||||
}
|
||||
|
||||
if patterns == nil {
|
||||
if len(patterns) != 0 && !MatchPath(entry.Path, patterns) {
|
||||
entry.Attributes = nil
|
||||
} else if len(patterns) != 0 {
|
||||
if !MatchPath(entry.Path, patterns) {
|
||||
entry.Attributes = nil
|
||||
}
|
||||
}
|
||||
|
||||
files = append(files, &entry)
|
||||
|
||||
Reference in New Issue
Block a user