benchmark: fix bench-mkdirp to use recursive option

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 <targos@protonmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
pull/23938/head
Klaus Meinhardt 2018-10-16 21:18:10 +02:00 committed by Michaël Zasso
parent 35f9cd22f5
commit 6b170f7c15
No known key found for this signature in database
GPG Key ID: 770F7A9A5AE15600
1 changed files with 1 additions and 1 deletions

View File

@ -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));