From 8a4823f20100aae4ef962ccefb7324a0c9bcdebf 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 The original PR didn't update the benchmark after renaming the option. --- 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));