diff --git a/doc/api/fs.md b/doc/api/fs.md index 5ca7cfac7e897a..9e7e39d2178e93 100644 --- a/doc/api/fs.md +++ b/doc/api/fs.md @@ -1009,7 +1009,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) {