pub fn sync_directory(path: &Path) -> Result<()>Expand description
Fsync a directory so its rename/create entries are durable after a crash.
On Unix this opens the directory and calls sync_all on the descriptor.
On Windows it is a no-op (see module docs).