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:
+1
-1
@@ -559,7 +559,7 @@ func (f *FsDrive) List() fs.ObjectsChan {
|
|||||||
fs.Stats.Error()
|
fs.Stats.Error()
|
||||||
log.Printf("Couldn't find root: %s", err)
|
log.Printf("Couldn't find root: %s", err)
|
||||||
} else {
|
} else {
|
||||||
if *driveFullList {
|
if f.root == "" && *driveFullList {
|
||||||
err = f.listDirFull(f.rootId, "", out)
|
err = f.listDirFull(f.rootId, "", out)
|
||||||
} else {
|
} else {
|
||||||
err = f.listDirRecursive(f.rootId, "", out)
|
err = f.listDirRecursive(f.rootId, "", out)
|
||||||
|
|||||||
Reference in New Issue
Block a user