From b7521c0fe212272a286a299d0eb9ce8096cb703e Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Mon, 2 Oct 2017 11:21:16 +0100 Subject: [PATCH] dropbox: fix error when renaming directories - fixes #1708 --- dropbox/dropbox.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dropbox/dropbox.go b/dropbox/dropbox.go index ae876c83f..8b2bd5a55 100644 --- a/dropbox/dropbox.go +++ b/dropbox/dropbox.go @@ -629,7 +629,7 @@ func (f *Fs) DirMove(src fs.Fs, srcRemote, dstRemote string) error { dstPath := path.Join(f.slashRoot, dstRemote) // Check if destination exists - _, err := f.getDirMetadata(f.slashRoot) + _, err := f.getDirMetadata(dstPath) if err == nil { return fs.ErrorDirExists } else if err != fs.ErrorDirNotFound {