mirror of
https://github.com/rclone/rclone.git
synced 2024-11-22 20:20:16 +08:00
cache: implement fs.ObjectUnWrapper
This commit is contained in:
parent
7f3d5c31d9
commit
eb6aafbd14
9
backend/cache/object.go
vendored
9
backend/cache/object.go
vendored
|
@ -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)
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue
Block a user