move: don't create directories with --dry-run - fixes #2676
This commit is contained in:
parent
57b85b8155
commit
c6786eeb2d
1 changed files with 1 additions and 2 deletions
|
@ -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++
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue