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) )