fs.mkdtempSync(prefix[, options])


返回创建的目录路径。

【Returns the created directory path.】

有关详细信息,请参阅此 API 异步版本的文档:fs.mkdtemp()

【For detailed information, see the documentation of the asynchronous version of this API: fs.mkdtemp().】

可选的 options 参数可以是指定编码的字符串,或者是一个具有 encoding 属性的对象,用于指定要使用的字符编码。

【The optional options argument can be a string specifying an encoding, or an object with an encoding property specifying the character encoding to use.】