-
Notifications
You must be signed in to change notification settings - Fork 515
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
Unable to "chain" BasePathFs #79
Comments
If the example would print the nested path, an app which just gets the fs2 from your example above, would be able to reveal too much about the system, IMO. |
Your point makes sense. The problem, however, is that the Before reading your comment I did however implement pull request 80 to resolve this. |
Hmm... #80 looks nice and works, but the security issue is probably also a valid point. Maybe we could leave the RealPath() behaviour like this, but add a private fullPath() method that works like in your pull request and then replace all internal usages of RealPath() with this? |
Sure, I like that |
Added fix to support "nested" `BasePathFs`. Unit-tests are also included.
Rather keep the `RealPath` behaviour as originally implemented. Added a new method `fullPath` which is used by all other methods like `MkDir`.
Amendment to previous commit, fixed the related test
This example does not work as expected:
The above output is:
Instead I expected
fs2
to have nested paths as it usesfs1
as its source:The text was updated successfully, but these errors were encountered: