mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-15 21:26:50 +00:00
1 parent
9b658d86b2
commit
76509830e6
190 files changed
+3469
-930
No files matched your search
@@ -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