summaryrefslogtreecommitdiff
path: root/lib/internal/fs/utils.js
diff options
context:
space:
mode:
authorcjihrig <cjihrig@gmail.com>2019-11-25 15:04:18 -0500
committercjihrig <cjihrig@gmail.com>2019-11-27 18:27:11 -0500
commit4059055739c1c395c00cf989d77073e862f9dae6 (patch)
tree218dbe11b5f0931b09b14ce5284e579d8512fe7b /lib/internal/fs/utils.js
parent84aa19270d2d2736f1e18b359e3531b76db788d3 (diff)
downloadandroid-node-v8-4059055739c1c395c00cf989d77073e862f9dae6.tar.gz
android-node-v8-4059055739c1c395c00cf989d77073e862f9dae6.tar.bz2
android-node-v8-4059055739c1c395c00cf989d77073e862f9dae6.zip
fs: rename rimraf's maxBusyTries to maxRetries
This is part of reworking the rimraf retry logic. Refs: https://github.com/nodejs/node/issues/30580 PR-URL: https://github.com/nodejs/node/pull/30644 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'lib/internal/fs/utils.js')
-rw-r--r--lib/internal/fs/utils.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/internal/fs/utils.js b/lib/internal/fs/utils.js
index 2aaf267987..660c81f454 100644
--- a/lib/internal/fs/utils.js
+++ b/lib/internal/fs/utils.js
@@ -567,7 +567,7 @@ function warnOnNonPortableTemplate(template) {
const defaultRmdirOptions = {
emfileWait: 1000,
- maxBusyTries: 3,
+ maxRetries: 3,
recursive: false,
};
@@ -583,7 +583,7 @@ const validateRmdirOptions = hideStackFrames((options) => {
throw new ERR_INVALID_ARG_TYPE('recursive', 'boolean', options.recursive);
validateInt32(options.emfileWait, 'emfileWait', 0);
- validateUint32(options.maxBusyTries, 'maxBusyTries');
+ validateUint32(options.maxRetries, 'maxRetries');
return options;
});