1
mirror of https://github.com/rclone/rclone synced 2024-11-12 10:50:08 +01:00

drive: fix misplaced log in dedupe MergeDirs

This commit is contained in:
Nick Craig-Wood 2018-04-12 18:01:57 +01:00
parent d97fe3b824
commit ef412c1985

View File

@ -885,9 +885,9 @@ func (f *Fs) MergeDirs(dirs []fs.Directory) error {
}
}
// rmdir (into trash) the now empty source directory
fs.Infof(srcDir, "removing empty directory")
err = f.rmdir(srcDir.ID(), true)
if err != nil {
fs.Infof(srcDir, "removing empty directory")
return errors.Wrapf(err, "MergDirs move failed to rmdir %q", srcDir)
}
}