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>
This commit is contained in:
Klaus Meinhardt 2018-10-16 21:18:10 +02:00 committed by Myles Borins
parent 437908a90b
commit c75d4bb106
No known key found for this signature in database
GPG Key ID: 933B01F40B5CA946

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