pub fn create(path: &Path) -> Result<File>
Create or truncate a file for streaming writes.
Returns a contextual error when the file cannot be created.