"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
local: fix getXattr returning empty map instead of nil
Leon Brocardd2b5ff8384a8
diff --git a/backend/local/xattr.go b/backend/local/xattr.goindex e34dc02ad..8ca8a7f35 100644--- a/backend/local/xattr.go+++ b/backend/local/xattr.go@@ -81,6 +81,10 @@ func (o *Object) getXattr() (metadata fs.Metadata, err error) {}metadata[k] = string(v)}+ // Return nil if all xattrs were filtered out (e.g. com.apple.provenance on macOS)+ if len(metadata) == 0 {+ return nil, nil+ }return metadata, nil}