Skip to content

fs: rimraf should not recurse on failure

Rodrigo Muino Tomonari requested to merge github/fork/bcoe/rimraf-fix into master

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), or vcbuild test (Windows) passes
  • commit message follows commit guidelines

Merge request reports

Loading