pub fn handle_file_path_check(result: FilePathCheckResult) {
    match result {
        FilePathCheckResult::Exists => {
            //
        }
        FilePathCheckResult::DoesNotExist => {
            e!(result.message());
            let answer = ask_bool("Do you want to make the file now?", false);
            if answer {
                if !create_file() {
                    exit()
                }
            } else {
                exit()
            }
        }
        FilePathCheckResult::NotAFile => {
            e!(result.message());
            e!("Nothing to do. Exiting.");
            exit();
        }
    }
}
// Reacts to previous check of file existence
Reacts to previous check of file existence
Reacts to previous check of file existence
pub fn handle_file_path_check(result: FilePathCheckResult) {
    match result {
        FilePathCheckResult::Exists => {
            //
        }
        FilePathCheckResult::DoesNotExist => {
            e!(result.message());
            let answer = ask_bool("Do you want to make the file now?", false);
            if answer {
                if !create_file() {
                    exit()
                }
            } else {
                exit()
            }
        }
        FilePathCheckResult::NotAFile => {
            e!(result.message());
            e!("Nothing to do. Exiting.");
            exit();
        }
    }
}
pub fn handle_file_path_check ( result : FilePathCheckResult ) { match result { FilePathCheckResult :: Exists => { // } FilePathCheckResult :: DoesNotExist => { e ! ( result message ( ) ) ; let answer = ask_bool ( " " , false ) ; if answer { if ! create_file ( ) { exit ( ) } } else { exit ( ) } } FilePathCheckResult :: NotAFile => { e ! ( result message ( ) ) ; e ! ( " " ) ; exit ( ) ; } } }
Reacts to previous check of file existence
Reacts to previous check of file existence
result
FilePathCheckResult