-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use spf13/afero or provide a compatibility layer? #64
Comments
purpleidea
changed the title
Use spf13/afero or provide a compatbilitiy layer?
Use spf13/afero or provide a compatibility layer?
Nov 17, 2018
@purpleidea I recommend implementing a billy.Filesystem on top of an afero one. We are open for PRs |
FWIW I implemented this Afero compatibility for |
I've started a go-billy fs that uses afero as a backend. Still needs documentation but you should be able to wrap it with: billyfs := desfacer.New(aferofs) |
+1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I use https://github.com/spf13/afero/ in a number of ways. I wanted to use https://github.com/src-d/go-git/ with that as the backing filesystem. As a result, I'd have to either switch to this, or implement a compatibility layer. Since the former is not possible, I think the later might be a good approach.
I'm opening this issue to track that progress. Basically we should have a helper function which takes a fileystem from afero and returns something that implements this interface. That should probably be in the afero lib, and the opposite should be here.
The text was updated successfully, but these errors were encountered: