mirror of
https://github.com/jkl1337/duplicacy.git
synced 2026-01-04 20:54:44 -06:00
Automatically exclude .duplicacy directory only, if nobackup_file is not
set.
This commit is contained in:
@@ -481,7 +481,7 @@ func ListEntries(top string, path string, fileList *[]*Entry, patterns []string,
|
|||||||
entries := make([]*Entry, 0, 4)
|
entries := make([]*Entry, 0, 4)
|
||||||
|
|
||||||
for _, f := range files {
|
for _, f := range files {
|
||||||
if f.Name() == DUPLICACY_DIRECTORY {
|
if (f.Name() == DUPLICACY_DIRECTORY) && (nobackupFile == "") {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
entry := CreateEntryFromFileInfo(f, normalizedPath)
|
entry := CreateEntryFromFileInfo(f, normalizedPath)
|
||||||
|
|||||||
Reference in New Issue
Block a user