非标
此特征是非标准的,且不在标准轨道中。不要在面向 Web 的生产站点中使用它:它不适用于每个用户。实现之间可能存在大的不兼容性,且行为将来可能改变。

摘要

flush method is used to ensure any change made to a file is properly written on disk.

For performance reasons, a LockedFile object buffers all its operation in memory. This allows fast writing and reading operations. Periodically, the data are written onto disk. However, if something goes wrong before that, some operations can be lost. To avoid that, it's possible to force a write onto the disk by calling the flush 方法。

句法

var request = instanceOfLockedFile.flush();
					

返回

A FileRequest object to handle the success or failure of the operation.

规范

规范 状态 注释
FileSystem API 编者草案 Draft proposal

另请参阅

元数据

  • 最后修改: