1
0
mirror of https://github.com/rclone/rclone.git synced 2025-12-06 00:03:32 +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:
Filipe Azevedo
2022-08-17 00:33:58 +02:00
committed by Nick Craig-Wood
parent 44c3f5e1e8
commit 126f00882b
2 changed files with 12 additions and 0 deletions

View File

@@ -242,6 +242,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")
}
// Pin the Fs into the cache so that when we use cache.NewFs
// with the same remote string we get this one. The Pin is
// removed when the vfs is finalized