From 6b170f7c157f7e7f8a7933c5bae712d2e382010b Mon Sep 17 00:00:00 2001 From: Klaus Meinhardt Date: Tue, 16 Oct 2018 21:18:10 +0200 Subject: 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(-) (limited to 'benchmark') diff --git a/benchmark/fs/bench-mkdirp.js b/benchmark/fs/bench-mkdirp.js index 96a792c35a..b9e62045f6 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)); -- cgit v1.2.3