C2FO / vfs

Pluggable, extensible virtual file system for Go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Change root folder of the file system

AAverin opened this issue · comments

Is your feature request related to a problem? Please describe.
I am writing an abstraction for my service that uses vfs.FileSystem.
For the Cloud setup I plan to use S3 implementation writing into a bucket.
For the local implementation I want to use some folder, just to test that files save correctly.
It doesn't seem to be possible to move vfs.Filesystem into a particular folder without changing into vfs.Location interface

Describe the solution you'd like
It would be great to see more methods working with the os filesystem, including an option to move into a particular folder and use it as a root of file-system.