GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||
GeezerVison is showing github.com — fs: add recursive option to rmdir() by cjihrig · Pull Request #29168 · nodejs/node Conversation
|
|
FWIW, other than the docs and tests that need to be added, this looks good to me. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Liking this as well, good call with the lazy loading. Waiting for docs/tests as well. Maybe some of the edge cases like the Windows ones can be included in the tests as well, but it's not a strict requirement. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
97b7a02 to
e293b5d
Compare
|
OK, this is ready for review. It occurred to me that we may want to mark this as experimental for a few releases. Any thoughts? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
CI: https://ci.nodejs.org/job/node-test-pull-request/25126/ EDIT: CI was yellow. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Having thought about rimraf way too much over the last few months, I ultimately come around to liking the consistency that a recursive option introduces (in relation to our implementation of mkdir recursive)...
I think there's meat to the argument that this makes rmdir with an option combine both unlink and rmdir behavior, which is a bit weird, but I feel this is ultimately the better user experience.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
We need to update license-builder.sh and re-run it? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
This commit adds a recursive option to fs.rmdir(), fs.rmdirSync(), and fs.promises.rmdir(). The implementation is a port of the npm module rimraf. PR-URL: #29168 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Roman Reiss <[email protected]> Reviewed-By: Ben Coe <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Jiawen Geng <[email protected]>
|
Landed in 53816cc |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Sorry i missed the PR; nobody posted a comment in #28208 indicating this one was opened. Does this mean that to feature detect this option, i have to try/catch around passing the wrong type of options object into the sync function? Am i missing a less invasive mechanism? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Correct. It's the same with the |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
This commit adds a recursive option to fs.rmdir(), fs.rmdirSync(), and fs.promises.rmdir(). The implementation is a port of the npm module rimraf. PR-URL: #29168 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Roman Reiss <[email protected]> Reviewed-By: Ben Coe <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Jiawen Geng <[email protected]>
Notable changes:
* deps:
* Update npm to 6.10.3 (isaacs)
#29023
* fs:
* Add recursive option to rmdir() (cjihrig)
#29168
* Allow passing true to emitClose option (Giorgos Ntemiris)
#29212
* Add \*timeNs properties to BigInt Stats objects (Joyee Cheung)
#21387
* net:
* Allow reading data into a static buffer (Brian White)
#25436
PR-URL: #29429
Notable changes:
* deps:
* Update npm to 6.10.3 (isaacs)
#29023
* fs:
* Add recursive option to rmdir() (cjihrig)
#29168
* Allow passing true to emitClose option (Giorgos Ntemiris)
#29212
* Add \*timeNs properties to BigInt Stats objects (Joyee Cheung)
#21387
* net:
* Allow reading data into a static buffer (Brian White)
#25436
PR-URL: #29429
Notable changes:
* deps:
* Update npm to 6.10.3 (isaacs)
#29023
* fs:
* Add recursive option to rmdir() (cjihrig)
#29168
* Allow passing true to emitClose option (Giorgos Ntemiris)
#29212
* Add \*timeNs properties to BigInt Stats objects (Joyee Cheung)
#21387
* net:
* Allow reading data into a static buffer (Brian White)
#25436
PR-URL: #29429
I guess |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Any chance of a backport to v10 for this (asking for sindresorhus/del#124)? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
10.x is in maintenance already so I think we missed the boat to do another
semver minor
…On Mon, May 11, 2020, 11:02 AM silverwind ***@***.***> wrote:
Any chance of a backport to v10 for this (asking for sindresorhus/del#124
<sindresorhus/del#124>)?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#29168 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AADZYV26DAS6E6RI276YBYTRRAHQXANCNFSM4IMMFUTA>
.
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Fine with me. Agree it would be odd to add features like this so late in the cycle. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.