vfs: add Fs() method to return underlying fs.Fs
This commit is contained in:
parent
b3e94b018c
commit
a7eec91d69
1 changed files with 5 additions and 0 deletions
|
@ -242,6 +242,11 @@ func New(f fs.Fs, opt *Options) *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
|
||||
func (vfs *VFS) SetCacheMode(cacheMode CacheMode) {
|
||||
vfs.Shutdown()
|
||||
|
|
Loading…
Reference in a new issue