Function maybe_sync_file

Source
fn maybe_sync_file(
    file: &File,
    writable: bool,
    operation: fn(&File) -> Result<()>,
) -> Result<i32>