diff options
author | SergeyTsukanov <47488049+SergeyTsukanov@users.noreply.github.com> | 2022-09-26 12:07:29 +0300 |
---|---|---|
committer | Juan José Arboleda <soyjuanarbol@gmail.com> | 2022-10-11 22:45:28 +0300 |
commit | 83cf979a0d45a97e90632f2f04e1b13d7b18e30b (patch) | |
tree | 1c08672e6bb6949d7e44b6a99522d14ebdf12830 /doc | |
parent | 863361928e9219f9412b6934a4c70b146ee2e27a (diff) |
fs: fix typo in mkdir example
PR-URL: https://github.com/nodejs/node/pull/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>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/api/fs.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/api/fs.md b/doc/api/fs.md index 5ca7cfac7e8..9e7e39d2178 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) { |