[Feature Suggestion] `vfs/fetch` similar to `cache/fetch`

For the cache backend, we support the rc command cache/fetch, to instruct the backend to populate the cache with a specific file or directory, allowing for prefetching. My understanding from the docs is that VFS is supposed to replace cache entirely and I see we have quite a few good vfs/* commands already for rc, but no equivalent to cache/fetch as far as I can tell.

Any reason for this? I might be able to help out with this if other folks would find it useful.

(What I would really love are some flags to indicate that a certain file/directory should always be kept cached locally including updating on any changes... But vfs/cache seems like a great place to start that gets 90% of the way there.)

1 Like

This would be handy indeed, no more needing to build a script that reads the files

welcome to the forum,

over the years, all those features has been requested multiple times.

one possible workaround is to download a file to /dev/null, which would force rclone to cache the entire file.

go for it.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.