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
fs.mkdir gained a recursive option in 10.12 (providing alternative to the mkdirp module) and I think the popularity of the rimraf module speaks for itself that there is very high userland to justify having it on fs.rmdir and it's variants too.
Examples of other languages implementing similar functionality are golang's os.RemoveAll or python's shutil.rmtree.
If we are to implement this in JS, we can use the withFileTypes of fs.readdir to skip on stat calls which will outperform the current implementation of rimraf.
Activity
silverwind commentedon May 18, 2019
If we are to implement this in JS, we can use the
withFileTypesoffs.readdirto skip onstatcalls which will outperform the current implementation ofrimraf.cjihrig commentedon May 18, 2019
Related work that stalled out due to performance concerns: #24252
silverwind commentedon May 18, 2019
Okay, so this is a duplicate of #22686, closing.