mirror of
https://github.com/rclone/rclone.git
synced 2025-01-22 22:28:47 +01:00
move: don't create directories with --dry-run - fixes #2676
This commit is contained in:
parent
57b85b8155
commit
c6786eeb2d
@ -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 New Issue
Block a user