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

@@ -207,7 +207,9 @@ func NewFs(name, root string) (ff fs.Fs, err error) {
pass: pass,
dialAddr: dialAddr,
}
f.features = (&fs.Features{}).Fill(f)
f.features = (&fs.Features{
CanHaveEmptyDirectories: true,
}).Fill(f)
// Make a connection and pool it to return errors early
c, err := f.getFtpConnection()
if err != nil {