Skip to main content

fsync_parent_dir

Function fsync_parent_dir 

Source
pub fn fsync_parent_dir(path: &Path)
Expand description

Best-effort fsync of the parent directory after a rename, ensuring the directory entry update is durable on crash. Errors are silently ignored because not all platforms support opening a directory for sync (e.g. Windows).