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

Revert previous fullPath changes - add tests for nested BasePaths #82

Merged
merged 1 commit into from
Apr 20, 2016
Merged

Revert previous fullPath changes - add tests for nested BasePaths #82

merged 1 commit into from
Apr 20, 2016

Conversation

francoishill
Copy link
Contributor

Revert the previous fullPath changes and add tests for "nested" BasePath's

@mbertschler
Copy link
Collaborator

hmm okay, but what will be the right long term solution?

@mbertschler mbertschler merged commit 0718c08 into spf13:master Apr 20, 2016
@francoishill
Copy link
Contributor Author

Well the original code is actually perfect because it works as expected with "nested" BasePaths on all methods (MkdirAll, Create, etc) except the RealPath. So for "interacting" with the nested file system it acts on the correct/nested files/folders.

My problem is that I needed a solution to obtain the full path. Because in my case I write files to a location (using a BasePathFs that got built up in stages so they are nested). Then it must send the "full path" to an external service.

But the solution is perhaps the pull request 83 (#83) I created? It adds a utility method FullBaseFsPath to resolve full paths of possible "nested" base paths.

What is your take on this?

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.

2 participants