Skip to content

Commit

Permalink
benchmark: fix bench-mkdirp to use recursive option
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
ajafff authored and MylesBorins committed Nov 26, 2018
1 parent fa9d286 commit 9e92b81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion benchmark/fs/bench-mkdirp.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 9e92b81

Please sign in to comment.