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 <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
  • Loading branch information
ajafff authored and targos committed Oct 28, 2018
1 parent d6aeb1e commit 9eff21d
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 9eff21d

Please sign in to comment.