You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Per nodejs/node#31530 node.js will soon return the first directory created rather than returning the requested directory. So if ./tmp/ does not exist the following script:
This will print tmp then undefined instead of printing tmp/subdir (also the result is never path.resolve'd). Knowing the first directory created can be useful when you need to set permissions or ownership of the created directories.
The node.js change itself will be masked by make-dir which returns path.resolve(input) but I think it would be useful for make-dir to emulate this new functionality. Maybe need to wait until it's known what versions of node.js will get this new functionality so useNativeRecursiveOption can be updated to ensure native is only used if it provides the result?
The text was updated successfully, but these errors were encountered:
Maybe need to wait until it's known what versions of node.js will get this new functionality so useNativeRecursiveOption can be updated to ensure native is only used if it provides the result?
Yes, I think it would be good to know that beforehand.
Per nodejs/node#31530 node.js will soon return the first directory created rather than returning the requested directory. So if
./tmp/
does not exist the following script:This will print
tmp
thenundefined
instead of printingtmp/subdir
(also the result is neverpath.resolve
'd). Knowing the first directory created can be useful when you need to set permissions or ownership of the created directories.The node.js change itself will be masked by
make-dir
which returnspath.resolve(input)
but I think it would be useful formake-dir
to emulate this new functionality. Maybe need to wait until it's known what versions of node.js will get this new functionality souseNativeRecursiveOption
can be updated to ensure native is only used if it provides the result?The text was updated successfully, but these errors were encountered: