mirror of
https://github.com/rclone/rclone.git
synced 2024-11-22 16:34:30 +01:00
fs: add IsLocal feature to identify local backend #3419
This commit is contained in:
parent
752d43d6fa
commit
f0e0d6cc3c
@ -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
|
||||
|
1
fs/fs.go
1
fs/fs.go
@ -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
|
||||
//
|
||||
|
Loading…
Reference in New Issue
Block a user