mirror of
https://github.com/rclone/rclone.git
synced 2025-12-11 22:14:05 +01:00
dropbox: speed up directory listings by specifying 1000 items in a chunk
This commit is contained in:
@@ -852,6 +852,7 @@ func (f *Fs) List(ctx context.Context, dir string) (entries fs.DirEntries, err e
|
|||||||
arg := files.ListFolderArg{
|
arg := files.ListFolderArg{
|
||||||
Path: f.opt.Enc.FromStandardPath(root),
|
Path: f.opt.Enc.FromStandardPath(root),
|
||||||
Recursive: false,
|
Recursive: false,
|
||||||
|
Limit: 1000,
|
||||||
}
|
}
|
||||||
if root == "/" {
|
if root == "/" {
|
||||||
arg.Path = "" // Specify root folder as empty string
|
arg.Path = "" // Specify root folder as empty string
|
||||||
|
|||||||
Reference in New Issue
Block a user