mirror of
https://github.com/rclone/rclone.git
synced 2025-02-02 11:39:33 +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 {
|
for _, entry := range entries {
|
||||||
dir, ok := entry.(fs.Directory)
|
dir, ok := entry.(fs.Directory)
|
||||||
if ok {
|
if ok {
|
||||||
err := f.Mkdir(dir.Remote())
|
err := operations.Mkdir(f, dir.Remote())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fs.Errorf(fs.LogDirName(f, dir.Remote()), "Failed to Mkdir: %v", err)
|
fs.Errorf(fs.LogDirName(f, dir.Remote()), "Failed to Mkdir: %v", err)
|
||||||
accounting.Stats.Error(err)
|
|
||||||
} else {
|
} else {
|
||||||
okCount++
|
okCount++
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user