mirror of https://github.com/nodejs/node.git
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
parent
35f9cd22f5
commit
6b170f7c15
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue