mirror of
https://github.com/rclone/rclone.git
synced 2024-11-23 06:27:11 +08:00
drive: fix subdirectory listing to not list entire drive - fixes #23
This was causing inexplicably slow transfers on subdirectories of drives with lots of files.
This commit is contained in:
parent
5710247bf6
commit
1758621a51
|
@ -559,7 +559,7 @@ func (f *FsDrive) List() fs.ObjectsChan {
|
|||
fs.Stats.Error()
|
||||
log.Printf("Couldn't find root: %s", err)
|
||||
} else {
|
||||
if *driveFullList {
|
||||
if f.root == "" && *driveFullList {
|
||||
err = f.listDirFull(f.rootId, "", out)
|
||||
} else {
|
||||
err = f.listDirRecursive(f.rootId, "", out)
|
||||
|
|
Loading…
Reference in New Issue
Block a user