pub(crate) fn sync_dir(dir: &Path) -> Result<()>
Syncs a directory so renames and new entries in it are durable.