-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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
fs: fs.mkdirs or fs.mkdirp #683
Comments
Is there any reason this needs to be a part of core? Feature parity with Java is definitely not a reason :-) |
Personally, I find it a bit weird that a recursive option exists in the command line tool but not in the node.js/io.js interface. As explained in the node issue though, it has to do with the posix interface not having a recursive component to it. It's easy enough to just depend on mkdirp though. At best, I'd say this is very low priority. |
i think it's only worth adding if it's done in the C++ layer with some sort of performance improvement. if it's written in JS, then it might as well remain a module. |
What reasons would you need mkdirp to be optimised? Are you making nested directories for each web request or something? I'm not convinced, mkdirp exists and is well used & liked. So -1 from me. |
-1 from me as well. |
I agree with @jonathanong however @rvagg is in the point, what use case should need that level of optimization? if no use case the optimization, if there is any, shouldn't be needed, then -1, too. |
I've always found it rather strange that recursive mkdir* isn't default. -0 |
|
Welcome to Node, where our standard library is tiny and all of the good stuff is in npm. Many of us will fight hard to keep it that way. There's already a mirror behind the GFW, you should probably use that, see http://cnpmjs.org/ |
@rvagg Yes, I appreciate that principle. |
Relevant discussion in the mkdirp repo with answers by @substack : https://github.com/substack/node-mkdirp/issues/17 |
I hope fs module can provide a method likes mkdirp.
Yes, mkdirp module is good, and much people use it or depend on it.
But, I think it should be provided at language level not library level.
Just like Java:
The text was updated successfully, but these errors were encountered: