Commit 26991d08 authored by cjihrig's avatar cjihrig Committed by Daniel Bevenius
Browse files

fs: add synchronous retries to rimraf

This commit gives the synchronous version of rimraf the same
linear retry logic as the asynchronous version. Prior to this
commit, sync rimraf kept retrying the operation as soon as
possible until maxRetries was reached.

PR-URL: https://github.com/nodejs/node/pull/30785
Fixes: https://github.com/nodejs/node/issues/30580
Refs: https://github.com/nodejs/node/pull/30569


Reviewed-By: default avatarRich Trott <rtrott@gmail.com>
Reviewed-By: default avatarRichard Lau <riclau@uk.ibm.com>
parent ba612536
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment