mirror of
https://github.com/jkl1337/duplicacy.git
synced 2026-01-06 13:44:40 -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
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
if patterns == nil {
|
if len(patterns) != 0 && !MatchPath(entry.Path, patterns) {
|
||||||
entry.Attributes = nil
|
entry.Attributes = nil
|
||||||
} else if len(patterns) != 0 {
|
|
||||||
if !MatchPath(entry.Path, patterns) {
|
|
||||||
entry.Attributes = nil
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
files = append(files, &entry)
|
files = append(files, &entry)
|
||||||
|
|||||||
Reference in New Issue
Block a user