From c6786eeb2dbd5a258dd43373e2418e3ba9577819 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Sun, 4 Nov 2018 13:01:01 +0000 Subject: [PATCH] move: don't create directories with --dry-run - fixes #2676 --- fs/sync/sync.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fs/sync/sync.go b/fs/sync/sync.go index 6465abbf7..1c24fb2dc 100644 --- a/fs/sync/sync.go +++ b/fs/sync/sync.go @@ -471,10 +471,9 @@ func copyEmptyDirectories(f fs.Fs, entries map[string]fs.DirEntry) error { for _, entry := range entries { dir, ok := entry.(fs.Directory) if ok { - err := f.Mkdir(dir.Remote()) + err := operations.Mkdir(f, dir.Remote()) if err != nil { fs.Errorf(fs.LogDirName(f, dir.Remote()), "Failed to Mkdir: %v", err) - accounting.Stats.Error(err) } else { okCount++ }