From 527099ae728d45eea75f1e17130aad948929509d Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Fri, 24 Feb 2017 22:49:29 +0000 Subject: [PATCH] dropbox: normalise the case for single level directory listings #1165 This should fix directory at a time syncs having strange case. --- dropbox/dropbox.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/dropbox/dropbox.go b/dropbox/dropbox.go index c0e8b39d4..c19a1db83 100644 --- a/dropbox/dropbox.go +++ b/dropbox/dropbox.go @@ -381,11 +381,8 @@ func (f *Fs) listOneLevel(out fs.ListOpts, dir string) { } for i := range dirEntry.Contents { entry := &dirEntry.Contents[i] - remote, err := f.stripRoot(entry.Path) - if err != nil { - out.SetError(err) - return - } + // Normalise the path to the dir passed in + remote := path.Join(dir, path.Base(entry.Path)) if entry.IsDir { dir := &fs.Dir{ Name: remote,