pub fn sync(file: File, io: Io) SyncError!void
Blocks until all pending file contents and metadata modifications for the file have been synchronized with the underlying filesystem.
This does not ensure that metadata for the directory containing the file has also reached disk.
file: File
io: Io
232 233 234
pub fn sync(file: File, io: Io) SyncError!void { return io.vtable.fileSync(io.userdata, file); }
Blocks until all pending file contents and metadata modifications for the file have been synchronized with the underlying filesystem.
This does not ensure that metadata for the directory containing the file has also reached disk.