From a7eec91d69ef644640f6064e5606b4560f30dfa6 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Wed, 31 Jul 2019 22:19:23 +0100 Subject: [PATCH] vfs: add Fs() method to return underlying fs.Fs --- vfs/vfs.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/vfs/vfs.go b/vfs/vfs.go index 5e8608241..9fae2fbd0 100644 --- a/vfs/vfs.go +++ b/vfs/vfs.go @@ -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()