mirror of
https://github.com/rclone/rclone.git
synced 2025-12-11 22:14:05 +01:00
vfs: Add VFS --links command line switch
This will be used to enable links support for the various mount engines in a follow up commit.
This commit is contained in:
committed by
Nick Craig-Wood
parent
44c3f5e1e8
commit
126f00882b
@@ -44,6 +44,12 @@ var OptionsInfo = fs.Options{{
|
||||
Default: false,
|
||||
Help: "Only allow read-only access",
|
||||
Groups: "VFS",
|
||||
}, {
|
||||
Name: "links",
|
||||
Default: false,
|
||||
Help: "Translate symlinks to/from regular files with a '" + fs.LinkSuffix + "' extension",
|
||||
Groups: "VFS",
|
||||
ShortOpt: "l",
|
||||
}, {
|
||||
Name: "vfs_cache_mode",
|
||||
Default: CacheModeOff,
|
||||
@@ -165,6 +171,7 @@ type Options struct {
|
||||
NoSeek bool `config:"no_seek"` // don't allow seeking if set
|
||||
NoChecksum bool `config:"no_checksum"` // don't check checksums if set
|
||||
ReadOnly bool `config:"read_only"` // if set VFS is read only
|
||||
Links bool `config:"links"` // if set interpret link files
|
||||
NoModTime bool `config:"no_modtime"` // don't read mod times for files
|
||||
DirCacheTime fs.Duration `config:"dir_cache_time"` // how long to consider directory listing cache valid
|
||||
Refresh bool `config:"vfs_refresh"` // refreshes the directory listing recursively on start
|
||||
|
||||
Reference in New Issue
Block a user