Skip to main content

try_source_dir

Function try_source_dir 

Source
pub fn try_source_dir(name: &str, fpath: &[String]) -> Option<String>
Expand description

The $fpath directory the entry for name was resolved from, while that directory is still on fpath and still holds the file. The shard-backed answer to a getfpfunc existence probe (test_only), with the same caveat as try_resolve about a later shadowing file.