From 86c89f43a0651f0341dfb949694e46a9415aa667 Mon Sep 17 00:00:00 2001 From: a-s-z-home Date: Sat, 3 Nov 2018 20:13:43 +0100 Subject: [PATCH] Automatically exclude .duplicacy directory only, if nobackup_file is not set. --- src/duplicacy_entry.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/duplicacy_entry.go b/src/duplicacy_entry.go index 1f1b795..cf9db7e 100644 --- a/src/duplicacy_entry.go +++ b/src/duplicacy_entry.go @@ -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)