mirror of
https://github.com/rclone/rclone.git
synced 2025-06-21 04:08:02 +02:00
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
@ -381,11 +381,8 @@ func (f *Fs) listOneLevel(out fs.ListOpts, dir string) {
|
|||||||
}
|
}
|
||||||
for i := range dirEntry.Contents {
|
for i := range dirEntry.Contents {
|
||||||
entry := &dirEntry.Contents[i]
|
entry := &dirEntry.Contents[i]
|
||||||
remote, err := f.stripRoot(entry.Path)
|
// Normalise the path to the dir passed in
|
||||||
if err != nil {
|
remote := path.Join(dir, path.Base(entry.Path))
|
||||||
out.SetError(err)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
if entry.IsDir {
|
if entry.IsDir {
|
||||||
dir := &fs.Dir{
|
dir := &fs.Dir{
|
||||||
Name: remote,
|
Name: remote,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user