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)
}
}