Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

dropbox: speed up directory listings by specifying 1000 items in a chunk

Nick Craig-Wood0c03aa3a8b01
diff --git a/backend/dropbox/dropbox.go b/backend/dropbox/dropbox.go
index 956f6bde1..4fc5829e2 100644
--- a/backend/dropbox/dropbox.go
+++ b/backend/dropbox/dropbox.go
@@ -852,6 +852,7 @@ func (f *Fs) List(ctx context.Context, dir string) (entries fs.DirEntries, err e
arg := files.ListFolderArg{
Path: f.opt.Enc.FromStandardPath(root),
Recursive: false,
+ Limit: 1000,
}
if root == "/" {
arg.Path = "" // Specify root folder as empty string