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

This commit is contained in:
Nick Craig-Wood 2021-11-09 10:11:59 +00:00
parent caa2b8bf40
commit 0c03aa3a8b

View File

@ -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