openAsync
external fun openAsync(path: PathLike, flags: String = definedExternally, mode: Mode = definedExternally): Promise<FileHandle>(source)
external fun openAsync(path: PathLike, flags: Double = definedExternally, mode: Mode = definedExternally): Promise<FileHandle>(source)
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.
Since
v10.0.0
Return
Fulfills with a {FileHandle} object.
Parameters
mode=0o666 Sets the file mode (permission and sticky bits) if the file is created.