filehandle.datasync()


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

将与文件关联的所有当前排队的 I/O 操作强制为操作系统的同步 I/O 完成状态。 有关详细信息,请参阅 POSIX fdatasync(2) 文档。

filehandle.sync 不同,此方法不会刷新修改的元数据。

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

Forces all currently queued I/O operations associated with the file to the operating system's synchronized I/O completion state. Refer to the POSIX fdatasync(2) documentation for details.

Unlike filehandle.sync this method does not flush modified metadata.