mirror of
https://github.com/rclone/rclone.git
synced 2025-12-11 05:43:15 +00: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
albertony
parent
46de095e9c
commit
5c8bd27c7f
@@ -227,6 +227,11 @@ func New(f fs.Fs, opt *vfscommon.Options) *VFS {
|
||||
fs.Logf(f, "--vfs-cache-mode writes or full is recommended for this remote as it can't stream")
|
||||
}
|
||||
|
||||
// Warn if we handle symlinks
|
||||
if vfs.Opt.Links {
|
||||
fs.Logf(f, "Symlinks support enabled")
|
||||
}
|
||||
|
||||
vfs.SetCacheMode(vfs.Opt.CacheMode)
|
||||
|
||||
// Pin the Fs into the cache so that when we use cache.NewFs
|
||||
|
||||
Reference in New Issue
Block a user