From eb6aafbd14ccd560230143986e359628a5abf30e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20M=C3=B6ller?= Date: Thu, 26 Jul 2018 12:53:46 +0200 Subject: [PATCH] cache: implement fs.ObjectUnWrapper --- backend/cache/object.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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) )