1
0
mirror of https://github.com/rclone/rclone.git synced 2026-01-06 10:33:34 +00:00

fs: Add CanHaveEmptyDirectories and BucketBased feature flags to all remotes

This commit is contained in:
Nick Craig-Wood
2017-08-09 15:27:43 +01:00
parent c1bfdd893f
commit 20ae7d562b
18 changed files with 88 additions and 25 deletions

View File

@@ -317,7 +317,11 @@ func NewFs(name, root string) (fs.Fs, error) {
location: fs.ConfigFileGet(name, "location"),
storageClass: fs.ConfigFileGet(name, "storage_class"),
}
f.features = (&fs.Features{ReadMimeType: true, WriteMimeType: true}).Fill(f)
f.features = (&fs.Features{
ReadMimeType: true,
WriteMimeType: true,
BucketBased: true,
}).Fill(f)
if f.objectACL == "" {
f.objectACL = "private"
}