fn make_file(file_path: &Path) -> File {
    match File::create(file_path) {
        Ok(file) => file,
        Err(error) => {
            println!(
                "error: Unable to make the {:?} file : {:?}",
                file_path.to_str(),
                error
            );
            std::process::exit(exitcode::CANTCREAT);
        }
    }
}
/// Function that will make a file and verify that it's have benne correctly
/// created
///
/// Returns a [File] on success.
///
/// ### Example
/// ```rust
/// let file_path = Path::new("path/to/the/file.dst");
/// let file_file = make_file(file_path);
/// println!("{:?}", file_file)
/// ```
Function that will make a file and verify that it's have benne correctly
created

Returns a [File] on success.
Function that will make a file and verify that it ' s have benne correctly created Returns a [ File ] on success .
fn make_file(file_path: &Path) -> File {
    match File::create(file_path) {
        Ok(file) => file,
        Err(error) => {
            println!(
                "error: Unable to make the {:?} file : {:?}",
                file_path.to_str(),
                error
            );
            std::process::exit(exitcode::CANTCREAT);
        }
    }
}
fn make_file ( file_path : & Path ) -> File { match File :: create ( file_path ) { Ok ( file ) => file , Err ( error ) => { println ! ( " " file_path to_str ( ) error ) ; std :: process :: exit ( exitcode :: CANTCREAT ) ; } } }
Function that will make a file and verify that it's have benne correctly
created
Function that will make a file and verify that it ' s have benne correctly created
file_path
&Path
file_path
&Path
example
```rust
let file_path = Path::new("path/to/the/file.dst");
let file_file = make_file(file_path);
println!("{:?}", file_file)
```
` ` ` rust let file_path = Path :: new ( " path / to / the / file . dst " ) ; let file_file = make_file ( file_path ) ; println! ( " { : ? } " file_file ) ` ` `