Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

cache: implement fs.ObjectUnWrapper

Fabian Möllereb6aafbd14cc
diff --git a/backend/cache/object.go b/backend/cache/object.go
index b04a97df2..c567a822c 100644
--- a/backend/cache/object.go
+++ b/backend/cache/object.go
@@ -353,6 +353,13 @@ func (o *Object) tempFileStartedUpload() bool {
return started
}
+// UnWrap returns the Object that this Object is wrapping or
+// nil if it isn't wrapping anything
+func (o *Object) UnWrap() fs.Object {
+ return o.Object
+}
+
var (
- _ fs.Object = (*Object)(nil)
+ _ fs.Object = (*Object)(nil)
+ _ fs.ObjectUnWrapper = (*Object)(nil)
)