"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: ignore zero length directory markers at the root too
Nick Craig-Wood5ba5be9b3738
diff --git a/backend/googlecloudstorage/googlecloudstorage.go b/backend/googlecloudstorage/googlecloudstorage.goindex 7e2cd5c65..7ca0ad24a 100644--- a/backend/googlecloudstorage/googlecloudstorage.go+++ b/backend/googlecloudstorage/googlecloudstorage.go@@ -438,7 +438,7 @@ func (f *Fs) list(dir string, recurse bool, fn listFn) error {}remote := object.Name[rootLength:]// is this a directory marker?- if strings.HasSuffix(remote, "/") && object.Size == 0 {+ if (strings.HasSuffix(remote, "/") || remote == "") && object.Size == 0 {if recurse {// add a directory in if --fast-list since will have no prefixeserr = fn(remote[:len(remote)-1], object, true)