filehandle.sync()


  • 返回: <Promise> 成功时将使用 undefined 履行。

请求将打开文件描述符的所有数据刷新到存储设备。 具体实现是操作系统和设备特定的。 有关更多详细信息,请参考 POSIX fsync(2) 文档。

  • Returns: <Promise> Fufills with undefined upon success.

Request that all data for the open file descriptor is flushed to the storage device. The specific implementation is operating system and device specific. Refer to the POSIX fsync(2) documentation for more detail.