mirror of
https://github.com/rclone/rclone.git
synced 2024-11-22 08:23:47 +01: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, "/") {
|
||||
continue
|
||||
}
|
||||
err = fn(prefix[:len(prefix)-1], &object, true)
|
||||
err = fn(prefix[rootLength:len(prefix)-1], &object, true)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user