fs: implement fs.rmdir recurisve
Add clearDir
options into fs.rmdir and fs.rmdirSync to delete a forder with sub folders or files. This PR is an attempt to port rimraf
into the core from the js layer.
Refs: #22686 (closed) Refs: #27764 (closed)
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
documentation is changed or added -
commit message follows commit guidelines