gcs: fix depth 1 directory listings
This commit is contained in:
parent
5b6dd36307
commit
55eafb3a9a
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue