pub fn remove_file(path: &str) -> Result<()> {
    let process = match Command::new("rm")
        .args(&["-rf", &path])
        .stderr(Stdio::piped())
        .stdout(Stdio::piped())
        .output()
    {
        Err(why) => panic!("error executing process: {}", why),
        Ok(process) => process,
    };
    if !process.status.success() {
        log_process_error(process).expect("logging error failed.");
    }
    Ok(())
}
/// PARAMS: path = the path to the file you would like deleted.
/// runs a 'rm -rf' command, and deletes the file with the
/// specified path.
path = the path to the file you would like deleted.
runs a 'rm -rf' command, and deletes the file with the
specified path.
path = the path to the file you would like deleted . runs a ' rm - rf ' command and deletes the file with the specified path .
pub fn remove_file(path: &str) -> Result<()> {
    let process = match Command::new("rm")
        .args(&["-rf", &path])
        .stderr(Stdio::piped())
        .stdout(Stdio::piped())
        .output()
    {
        Err(why) => panic!("error executing process: {}", why),
        Ok(process) => process,
    };
    if !process.status.success() {
        log_process_error(process).expect("logging error failed.");
    }
    Ok(())
}
pub fn remove_file ( path : & str ) -> Result < ( ) > { let process = match Command :: new ( " " ) . args ( & [ " " , & path ] ) . stderr ( Stdio :: piped ( ) ) . stdout ( Stdio :: piped ( ) ) . output ( ) { Err ( why ) => panic ! ( " " why ) , Ok ( process ) => process , } ; if ! process . status . success ( ) { log_process_error ( process ) . expect ( " " ) ; } Ok ( ( ) ) }
PARAMS: path = the path to the file you would like deleted.
PARAMS : path = the path to the file you would like deleted .
path
&str
path
&str