fs: rimraf should not recurse on failure
When an error occurs while running rimrafSync
, we pass the original options through to the call to rmdirSync
, this in turn spawns another call to rimraf
, rather than simply removing the file.
Fixes #34266 (closed)
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines