MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / ensure_launchd_runtime_dirs

Function ensure_launchd_runtime_dirs

src/daemon/service.rs:767–775  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

765}
766
767fn ensure_launchd_runtime_dirs() -> Result<()> {
768 let data_dir = tracedecay_data_dir()?;
769 std::fs::create_dir_all(&data_dir).map_err(|e| TraceDecayError::Config {
770 message: format!(
771 "failed to create daemon data directory '{}': {e}",
772 data_dir.display()
773 ),
774 })
775}
776
777fn launchd_install(service_path: &Path, start: bool, socket_path: &Path) -> Result<()> {
778 ensure_launchd_runtime_dirs()?;

Callers 2

launchd_installFunction · 0.85
launchd_refreshFunction · 0.85

Calls 1

tracedecay_data_dirFunction · 0.85

Tested by

no test coverage detected