pub fn find_console_scripts(bin_path: &Path) -> Vec<String> {
    let mut result = vec![];
    if !bin_path.exists() {
        return vec![];
    }

    for entry in bin_path.read_dir().expect("Trouble opening bin path") {
        if let Ok(entry) = entry {
            if entry.file_type().unwrap().is_file() {
                result.push(entry.file_name().to_str().unwrap().to_owned())
            }
        }
    }
    result
}
/// Find console scripts installed, by browsing the (custom) bin folder
Find console scripts installed, by browsing the (custom) bin folder
Find console scripts installed by browsing the ( custom ) bin folder
pub fn find_console_scripts(bin_path: &Path) -> Vec<String> {
    let mut result = vec![];
    if !bin_path.exists() {
        return vec![];
    }
    for entry in bin_path.read_dir().expect("Trouble opening bin path") {
        if let Ok(entry) = entry {
            if entry.file_type().unwrap().is_file() {
                result.push(entry.file_name().to_str().unwrap().to_owned())
            }
        }
    }
    result
}
pub fn find_console_scripts ( bin_path : & Path ) -> Vec < String > { let mut result = vec ! [ ] ; if ! bin_path . exists ( ) { return vec ! [ ] ; } for entry in bin_path . read_dir ( ) . expect ( " " ) { if let Ok ( entry ) = entry { if entry . file_type ( ) . unwrap ( ) . is_file ( ) { result . push ( entry . file_name ( ) . to_str ( ) . unwrap ( ) . to_owned ( ) ) } } } result }
Find console scripts installed, by browsing the (custom) bin folder
Find console scripts installed by browsing the ( custom ) bin folder
bin_path
&Path