From 9eff21d444c91840ac416c2d1bb7f740a14c67fd Mon Sep 17 00:00:00 2001 From: Klaus Meinhardt Date: Tue, 16 Oct 2018 21:18:10 +0200 Subject: [PATCH] benchmark: fix bench-mkdirp to use recursive option MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The original PR didn't update the benchmark after renaming the option. PR-URL: https://github.com/nodejs/node/pull/23699 Reviewed-By: Michaƫl Zasso Reviewed-By: James M Snell Reviewed-By: Luigi Pinca Reviewed-By: Colin Ihrig --- benchmark/fs/bench-mkdirp.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/benchmark/fs/bench-mkdirp.js b/benchmark/fs/bench-mkdirp.js index 96a792c35a48e4..b9e62045f6cf50 100644 --- a/benchmark/fs/bench-mkdirp.js +++ b/benchmark/fs/bench-mkdirp.js @@ -16,7 +16,7 @@ function main({ n }) { if (cntr-- <= 0) return bench.end(n); const pathname = `${tmpdir.path}/${++dirc}/${++dirc}/${++dirc}/${++dirc}`; - fs.mkdir(pathname, { createParents: true }, (err) => { + fs.mkdir(pathname, { recursive: true }, (err) => { r(cntr); }); }(n));