Skip to main content

sync_dir

Function sync_dir 

Source
pub fn sync_dir(dir: &Utf8Path) -> Result<()>
Expand description

Flush a directory entry, so a rename into it survives a crash.

A platform that refuses to sync a directory reports InvalidInput, and there the ordering rests on the platform’s own semantics rather than on a call this tool can make.

§Errors

Any I/O error other than a refusal to sync a directory at all.