mirror of
https://github.com/rclone/rclone.git
synced 2025-12-11 22:14:05 +01:00
fs: define the optional interface SetMetadata and implement it in wrapping backends
This also implements backend integration tests for the feature
This commit is contained in:
@@ -242,6 +242,7 @@ type FullObject interface {
|
||||
GetTierer
|
||||
SetTierer
|
||||
Metadataer
|
||||
SetMetadataer
|
||||
}
|
||||
|
||||
// ObjectOptionalInterfaces returns the names of supported and
|
||||
@@ -273,6 +274,9 @@ func ObjectOptionalInterfaces(o Object) (supported, unsupported []string) {
|
||||
_, ok = o.(Metadataer)
|
||||
store(ok, "Metadata")
|
||||
|
||||
_, ok = o.(SetMetadataer)
|
||||
store(ok, "SetMetadata")
|
||||
|
||||
return supported, unsupported
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user