mirror of
https://github.com/rclone/rclone.git
synced 2025-02-04 05:08:23 +02:00
gcs: fix depth 1 directory listings
This commit is contained in:
parent
5b6dd36307
commit
55eafb3a9a
@ -331,7 +331,7 @@ func (f *Fs) list(dir string, level int, fn listFn) error {
|
|||||||
if !strings.HasSuffix(prefix, "/") {
|
if !strings.HasSuffix(prefix, "/") {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
err = fn(prefix[:len(prefix)-1], &object, true)
|
err = fn(prefix[rootLength:len(prefix)-1], &object, true)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user