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

s3-about
Nick Craig-Wood 2019-07-31 22:19:23 +01:00
parent b3e94b018c
commit a7eec91d69
1 changed files with 5 additions and 0 deletions

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