"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files
Go azure-blobazure-blob-storageazure-filesbackblaze-b2cloud-storagedropboxencryptionftpfuse-filesystemgogolanggoogle-cloud-storagegoogle-driveonedriveopenstack-swiftrclones3sftpsyncwebdav
gcs: fix depth 1 directory listings
Nick Craig-Wood55eafb3a9aa9
diff --git a/googlecloudstorage/googlecloudstorage.go b/googlecloudstorage/googlecloudstorage.goindex 8935acdb8..19809a32d 100644--- a/googlecloudstorage/googlecloudstorage.go+++ b/googlecloudstorage/googlecloudstorage.go@@ -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}