pub fn fsync_dir(dir: &Path) -> Result<()>Expand description
Invokes sync_all() on a directory path on Unix platforms.
Windows FlushFileBuffers does not support directory handles
(ERROR_ACCESS_DENIED); file and MFT entry durability on Windows is
flushed via fsync_file.