mirror of
https://github.com/rclone/rclone.git
synced 2025-08-16 00:28:09 +02:00
fs: Formalize the ObjectUnWrapper interface
This commit is contained in:
7
fs/fs.go
7
fs/fs.go
@ -237,6 +237,13 @@ type MimeTyper interface {
|
||||
MimeType() string
|
||||
}
|
||||
|
||||
// ObjectUnWrapper is an optional interface for Object
|
||||
type ObjectUnWrapper interface {
|
||||
// UnWrap returns the Object that this Object is wrapping or
|
||||
// nil if it isn't wrapping anything
|
||||
UnWrap() Object
|
||||
}
|
||||
|
||||
// ListRCallback defines a callback function for ListR to use
|
||||
//
|
||||
// It is called for each tranche of entries read from the listing and
|
||||
|
Reference in New Issue
Block a user