Automatically exclude .duplicacy directory only, if nobackup_file is not

set.
This commit is contained in:
a-s-z-home
2018-11-03 20:13:43 +01:00
parent 2e5cbc73b9
commit 86c89f43a0

View File

@@ -481,7 +481,7 @@ func ListEntries(top string, path string, fileList *[]*Entry, patterns []string,
entries := make([]*Entry, 0, 4)
for _, f := range files {
if f.Name() == DUPLICACY_DIRECTORY {
if (f.Name() == DUPLICACY_DIRECTORY) && (nobackupFile == "") {
continue
}
entry := CreateEntryFromFileInfo(f, normalizedPath)