From 03c2a190ee36151c54eae7fee2064434459ec4e5 Mon Sep 17 00:00:00 2001 From: niknah Date: Thu, 14 Sep 2017 14:20:58 +1000 Subject: [PATCH] Don't create extra directories on --dry-run --- src/duplicacy_snapshotmanager.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/duplicacy_snapshotmanager.go b/src/duplicacy_snapshotmanager.go index 8b2df9a..6662da9 100644 --- a/src/duplicacy_snapshotmanager.go +++ b/src/duplicacy_snapshotmanager.go @@ -600,7 +600,9 @@ func (manager *SnapshotManager) ListAllFiles(storage Storage, top string) (allFi if len(files) > 1024 && !storage.IsFastListing() { for i := 0; i < 256; i++ { subdir := dir + fmt.Sprintf("%02x\n", i) - manager.storage.CreateDirectory(0, subdir) + if !manager.config.dryRun { + manager.storage.CreateDirectory(0, subdir) + } } } } else {