dropbox: fix error when renaming directories - fixes #1708
This commit is contained in:
parent
a1d942e5c3
commit
b7521c0fe2
1 changed files with 1 additions and 1 deletions
|
@ -629,7 +629,7 @@ func (f *Fs) DirMove(src fs.Fs, srcRemote, dstRemote string) error {
|
||||||
dstPath := path.Join(f.slashRoot, dstRemote)
|
dstPath := path.Join(f.slashRoot, dstRemote)
|
||||||
|
|
||||||
// Check if destination exists
|
// Check if destination exists
|
||||||
_, err := f.getDirMetadata(f.slashRoot)
|
_, err := f.getDirMetadata(dstPath)
|
||||||
if err == nil {
|
if err == nil {
|
||||||
return fs.ErrorDirExists
|
return fs.ErrorDirExists
|
||||||
} else if err != fs.ErrorDirNotFound {
|
} else if err != fs.ErrorDirNotFound {
|
||||||
|
|
Loading…
Reference in a new issue