fsPromises.open(path, flags[, mode])


打开 <FileHandle>

有关更多详细信息,请参考 POSIX open(2) 文档。

在 Windows 上预留了一些字符(< > : " / \ | ? *),如命名文件、路径和命名空间所记录。 在 NTFS 下,如果文件名包含冒号,则 Node.js 将打开文件系统流,如此 MSDN 页面所述。

Opens a <FileHandle>.

Refer to the POSIX open(2) documentation for more detail.

Some characters (< > : " / \ | ? *) are reserved under Windows as documented by Naming Files, Paths, and Namespaces. Under NTFS, if the filename contains a colon, Node.js will open a file system stream, as described by this MSDN page.