-
Notifications
You must be signed in to change notification settings - Fork 771
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
Feature request: Provide created path for fs.ensure*() #349
Comments
@jprichardson What do you think? Is this in scope for the project? Can it be implemented without rewriting too much? I have two concerns:
|
I think it's fine, although I don't see how it's much of a priority though for us unless one of us decides to do it.
Don't see people complaining about this since the ordering would play nice with these libraries.
As long as we have tests in place, I think it's fine. @loilo - if you're up for a PR, go for it. However, note the PR must include the following:
@RyanZim please let me know if you disagree with any of the aforementioned. |
Huh. I just realized that your implementation of those functions already does exactly that, it's even covered by the tests. It's just not stated in the documentation. 🙈 Do you want me to attach a PR that just adds this to the docs? |
@loilo Sorry so late in getting back to you.
Wouldn't hurt IMO, @jprichardson? |
@loilo - yep, please do! |
Attached the PR. However I have to say one should be careful about merging it in. Since they are all internally using |
If I find the time (not sure) I'd be happy to attach a PR this weekend. |
Closing as per #359 (comment) & #349 (comment). |
It would in some cases be useful to get feedback at which point an
fs.ensure*()
method did start to create a folder structure.Two examples will probably clarify this best:
My concrete use case is that I have to run
fs.ensureDir()
with root privileges and then set the owner back to the user who ran the command.The text was updated successfully, but these errors were encountered: