move: don't create directories with --dry-run - fixes #2676

This commit is contained in:
Nick Craig-Wood 2018-11-04 13:01:01 +00:00
parent 57b85b8155
commit c6786eeb2d
1 changed files with 1 additions and 2 deletions

View File

@ -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++
}