fn sync(self: File) SyncError!void

Blocks until all pending file contents and metadata modifications for the file have been synchronized with the underlying filesystem.

Note that this does not ensure that metadata for the directory containing the file has also reached disk.

Parameters

self: File,