dropbox: normalise the case for single level directory listings #1165

This should fix directory at a time syncs having strange case.
This commit is contained in:
Nick Craig-Wood 2017-02-24 22:49:29 +00:00
parent e2f0feef3c
commit 527099ae72

View file

@ -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,