阿西河

所有教程

公众号
🌙
阿西河前端的公众号

我的收藏

    最近访问  (文章)

      教程列表

      抓包专区
      测试专区

      Node.js fsPromises.open

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

      版本历史

      版本变更
      v11.1.0The flags argument is now optional and defaults to ‘r’.
      v10.0.0新增于: v10.0.0
      • path < string> | < Buffer> | < URL>
      • flags < string> | < number> See support of file system flags. Default: ‘r’.
      • mode < integer> Default: 0o666 (readable and writable)
      • Returns:

      Asynchronous file open that returns a Promise that, when resolved, yields a FileHandle object. See open(2).

      mode sets the file mode (permission and sticky bits), but only if the file was created.

      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.


      更多内容请参考:Node.js fs 文件系统,或者通过 点击对应菜单 进行查看;


      目录
      本文目录
      目录