Skip to main content

resolve

Function resolve 

Source
fn resolve(target: &str, dir: &Path) -> Option<PathBuf>
Expand description

The file target asks for, or None for a request to refuse.

The root serves the page; anything escaping dir (..) is refused rather than resolved.