cache: implement fs.ObjectUnWrapper

This commit is contained in:
Fabian Möller 2018-07-26 12:53:46 +02:00 committed by Nick Craig-Wood
parent 7f3d5c31d9
commit eb6aafbd14

View File

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