1
mirror of https://github.com/rclone/rclone synced 2024-11-29 07:55:12 +01:00

fs: add feature flag BucketBasedRootOK #3421

This is for bucket based remotes which can be used from the root.
Eventually all bucket based remotes will support this.
This commit is contained in:
Nick Craig-Wood 2019-08-08 16:49:34 +01:00
parent af3c47d282
commit 9f549f848d

View File

@ -470,6 +470,7 @@ type Features struct {
WriteMimeType bool // can set the mime type of objects
CanHaveEmptyDirectories bool // can have empty directories
BucketBased bool // is bucket based (like s3, swift etc)
BucketBasedRootOK bool // is bucket based and can use from root
SetTier bool // allows set tier functionality on objects
GetTier bool // allows to retrieve storage tier of objects
ServerSideAcrossConfigs bool // can server side copy between different remotes of the same type
@ -734,6 +735,7 @@ func (ft *Features) Mask(f Fs) *Features {
ft.WriteMimeType = ft.WriteMimeType && mask.WriteMimeType
ft.CanHaveEmptyDirectories = ft.CanHaveEmptyDirectories && mask.CanHaveEmptyDirectories
ft.BucketBased = ft.BucketBased && mask.BucketBased
ft.BucketBasedRootOK = ft.BucketBasedRootOK && mask.BucketBasedRootOK
ft.SetTier = ft.SetTier && mask.SetTier
ft.GetTier = ft.GetTier && mask.GetTier