MCPcopy Index your code
hub / github.com/RustPython/RustPython / search_up_dir

Function search_up_dir

crates/vm/src/getpath.rs:98–100  ·  view source on GitHub ↗
(start: P, landmarks: &[&str])

Source from the content-addressed store, hash-verified

96/// Search upward for a directory landmark
97#[cfg(not(windows))]
98fn search_up_dir<P: AsRef<Path>>(start: P, landmarks: &[&str]) -> Option<PathBuf> {
99 search_up(start, landmarks, |p| p.is_dir())
100}
101
102// Path computation functions
103

Callers 1

calculate_exec_prefixFunction · 0.85

Calls 2

search_upFunction · 0.85
is_dirMethod · 0.45

Tested by

no test coverage detected