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

Function safe_daemon_hook_rel_paths

src/daemon.rs:433–446  ·  view source on GitHub ↗
(paths: &[String])

Source from the content-addressed store, hash-verified

431
432#[cfg(not(unix))]
433fn safe_daemon_hook_rel_paths(paths: &[String]) -> Vec<String> {
434 paths
435 .iter()
436 .filter(|path| {
437 let path_ref = Path::new(path.as_str());
438 !path.is_empty()
439 && !path_ref.is_absolute()
440 && path_ref
441 .components()
442 .all(|component| !matches!(component, std::path::Component::ParentDir))
443 })
444 .cloned()
445 .collect()
446}
447
448#[cfg(not(unix))]
449fn hook_marker_file(agent: &str) -> &'static str {

Callers 1

notify_hook_eventFunction · 0.85

Calls 3

collectMethod · 0.80
as_strMethod · 0.45
is_emptyMethod · 0.45

Tested by

no test coverage detected