1
mirror of https://github.com/rclone/rclone synced 2024-12-26 18:23:45 +01:00

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

View File

@ -473,6 +473,7 @@ type Features struct {
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
IsLocal bool // is the local backend
// Purge all files in the root and the root directory
//