Skip to content
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

support for afero.Fs filesystem abstraction #101

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

progrium
Copy link

@progrium progrium commented Apr 29, 2020

using this library alongside code that uses afero has been very difficult, so I decided to just add support. it adds a dependency (afero), but now you can using this against various afero filesystem implementations. by default, it uses afero.OsFs so it behaves the same other than one thing: filesystem.Abs has been changed to just filesystem.Clean because there is no concept of working directory when working with abstraction filesystems.

i don't know whether to vendor this change and keep it to myself or if the added dependency and slight change in behavior is worth merging. but the option is here if nothing else as a reference for others needing to do the same.

[recreating to live on a non-master branch in my fork]

Signed-off-by: Jeff Lindsay <progrium@gmail.com>
… no meaningful working directory

Signed-off-by: Jeff Lindsay <progrium@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant