vfs: add Fs() method to return underlying fs.Fs

This commit is contained in:
Nick Craig-Wood 2019-07-31 22:19:23 +01:00
parent b3e94b018c
commit a7eec91d69

View File

@ -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()