"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files
Go azure-blobazure-blob-storageazure-filesbackblaze-b2cloud-storagedropboxencryptionftpfuse-filesystemgogolanggoogle-cloud-storagegoogle-driveonedriveopenstack-swiftrclones3sftpsyncwebdav
dropbox: normalise the case for single level directory listings #1165
Nick Craig-Wood527099ae728d
diff --git a/dropbox/dropbox.go b/dropbox/dropbox.goindex 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,