Skip to content

Commit

Permalink
fs: fix typo in mkdir example
Browse files Browse the repository at this point in the history
PR-URL: #44791
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Akhil Marsonya <akhil.marsonya27@gmail.com>
  • Loading branch information
SergeyTsukanov authored and RafaelGSS committed Sep 26, 2022
1 parent fa315b7 commit ce085d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api/fs.md
Original file line number Diff line number Diff line change
Expand Up @@ -1058,7 +1058,7 @@ import { mkdir } from 'node:fs/promises';

try {
const projectFolder = new URL('./test/project/', import.meta.url);
const createDir = await mkdir(path, { recursive: true });
const createDir = await mkdir(projectFolder, { recursive: true });

console.log(`created ${createDir}`);
} catch (err) {
Expand Down

0 comments on commit ce085d7

Please sign in to comment.