mirror of
https://github.com/rclone/rclone.git
synced 2024-11-22 20:39:18 +08:00
vfs: add Fs() method to return underlying fs.Fs
This commit is contained in:
parent
b3e94b018c
commit
a7eec91d69
|
@ -242,6 +242,11 @@ func New(f fs.Fs, opt *Options) *VFS {
|
||||||
return vfs
|
return vfs
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Fs returns the Fs passed into the New call
|
||||||
|
func (vfs *VFS) Fs() fs.Fs {
|
||||||
|
return vfs.f
|
||||||
|
}
|
||||||
|
|
||||||
// SetCacheMode change the cache mode
|
// SetCacheMode change the cache mode
|
||||||
func (vfs *VFS) SetCacheMode(cacheMode CacheMode) {
|
func (vfs *VFS) SetCacheMode(cacheMode CacheMode) {
|
||||||
vfs.Shutdown()
|
vfs.Shutdown()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user