staticlib/remote/
file_remote.rsuse std::path::Path;
pub fn is_file_extension_executable(file_path: String) -> bool {
let extension = Path::new(&file_path).extension();
if extension.is_none() {
return false;
}
let extension = extension.unwrap().to_str().unwrap().to_lowercase();
vec!["exe", "bat", "bin", "cmd", "com", "cpl", "gadget", "inf1", "ins", "inx", "isu", "job", "jse", "lnk",
"msc", "msi", "msp", "mst", "paf", "pif", "ps1", "reg", "rgs", "scr", "sct", "shb", "shs", "u3p", "vb", "vbe", "vbs",
"vbscript", "ws", "wsf", "wsh"].contains(&extension.as_str())
}