pub fn sync_dir(path: &Path) -> Result<()>
Windows has no directory fsync equivalent; files are flushed before publication.