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 filepath.Abs equivalent #431

Open
jmgilman opened this issue Sep 12, 2024 · 0 comments
Open

Support for filepath.Abs equivalent #431

jmgilman opened this issue Sep 12, 2024 · 0 comments

Comments

@jmgilman
Copy link

We routinely use afero in our code to simplify writing unit tests against a filesystem. We recently had a use case where we needed to call filepath.Abs() to convert a relative path into an absolute one. The problem is that this function potentially calls out to os.Getwd() to assist in resolution, thus making it difficult to test.

Looking through the Afero API, it doesn't appear that there's an equivalent. Can support for this use case be added?

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

No branches or pull requests

1 participant