"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
swift: don't read metadata for directory marker objects - fixes #703
Nick Craig-Wood346d4c587cc8
diff --git a/swift/swift.go b/swift/swift.goindex 17382a89b..0f515449e 100644--- a/swift/swift.go+++ b/swift/swift.go@@ -236,7 +236,8 @@ func (f *Fs) newObjectWithInfo(remote string, info *swift.Object) (fs.Object, er// Note that due to a quirk of swift, dynamic large objects are// returned as 0 bytes in the listing. Correct this here by// making sure we read the full metadata for all 0 byte files.- if info != nil && info.Bytes == 0 {+ // We don't read the metadata for directory marker objects.+ if info != nil && info.Bytes == 0 && info.ContentType != "application/directory" {info = nil}if info != nil {