Skip to content

Commit 2c2e2b5

Browse files
ajaffftargos
authored andcommitted
benchmark: fix bench-mkdirp to use recursive option
The original PR didn't update the benchmark after renaming the option. PR-URL: #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>
1 parent 02f13ab commit 2c2e2b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

benchmark/fs/bench-mkdirp.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ function main({ n }) {
1616
if (cntr-- <= 0)
1717
return bench.end(n);
1818
const pathname = `${tmpdir.path}/${++dirc}/${++dirc}/${++dirc}/${++dirc}`;
19-
fs.mkdir(pathname, { createParents: true }, (err) => {
19+
fs.mkdir(pathname, { recursive: true }, (err) => {
2020
r(cntr);
2121
});
2222
}(n));

0 commit comments

Comments
 (0)