fs: add IsLocal feature to identify local backend #3419

This commit is contained in:
Nick Craig-Wood 2019-08-13 12:35:55 +01:00
parent 752d43d6fa
commit f0e0d6cc3c
2 changed files with 2 additions and 0 deletions

View file

@ -194,6 +194,7 @@ func NewFs(name, root string, m configmap.Mapper) (fs.Fs, error) {
f.features = (&fs.Features{
CaseInsensitive: f.caseInsensitive(),
CanHaveEmptyDirectories: true,
IsLocal: true,
}).Fill(f)
if opt.FollowSymlinks {
f.lstat = os.Stat