fs.mkdirSync(path[, options])


同步创建一个目录。返回 undefined,或者如果 recursivetrue,则返回创建的第一个目录路径。这是 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.】