Function path_to_uri

Source
pub fn path_to_uri(path: &Path, root: &Path) -> Option<String>
Expand description

Calculates the canonical URI path describing the path relative to a root directory.

This will return None for paths outside the root directory.