mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-18 21:45:31 +09:00
refactor(svc): tidy the rust services and build tooling (#2735)
This commit is contained in:
1 parent
33737e0f79
commit
6af33c7188
41 files changed
+863
-1304
No files matched your search
+1
-13
@@ -79,19 +79,7 @@ pub fn which(name: &str) -> Option<PathBuf> {
|
||||
}
|
||||
|
||||
fn is_writable(path: &Path) -> bool {
|
||||
let probe = path.join(".fluxer-write-test");
|
||||
match std::fs::OpenOptions::new()
|
||||
.create(true)
|
||||
.write(true)
|
||||
.truncate(true)
|
||||
.open(&probe)
|
||||
{
|
||||
Ok(_) => {
|
||||
let _ = std::fs::remove_file(probe);
|
||||
true
|
||||
}
|
||||
Err(_) => false,
|
||||
}
|
||||
tempfile::NamedTempFile::new_in(path).is_ok()
|
||||
}
|
||||
|
||||
#[cfg(unix)]
|
||||
|
||||
Reference in new issue
Block a user