fs.mkdirSync(path[, options])
-
返回:<string> | <undefined>
¥Returns: <string> | <undefined>
同步地创建目录。返回 undefined
或创建的第一个目录路径(如果 recursive
为 true
)。这是 fs.mkdir()
的同步版本。
¥Synchronously creates a directory. Returns undefined
, or if recursive
is
true
, the first directory path created.
This is the synchronous version of fs.mkdir()
.
有关更多详细信息,请参阅 POSIX mkdir(2)
文档。
¥See the POSIX mkdir(2)
documentation for more details.