@@ -51,6 +51,8 @@ pub unsafe fn current_exe() -> Result<PathBuf> {
|
||||
/// accurate on all platforms; defaults to false.
|
||||
#[must_use]
|
||||
pub fn current_exe_deleted() -> bool {
|
||||
std::env::current_exe()
|
||||
.is_ok_and(|exe| exe.to_str().is_some_and(|exe| exe.ends_with(" (deleted)")))
|
||||
std::env::current_exe().is_ok_and(|exe| {
|
||||
exe.to_str()
|
||||
.is_some_and(|exe| exe.ends_with(" (deleted)"))
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user