From 0c03aa3a8b0103197414866c21d8dd373ce7568e Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Tue, 9 Nov 2021 10:11:59 +0000 Subject: [PATCH] dropbox: speed up directory listings by specifying 1000 items in a chunk --- backend/dropbox/dropbox.go | 1 + 1 file changed, 1 insertion(+) 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