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:
parent
e2f0feef3c
commit
527099ae72
1 changed files with 2 additions and 5 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue