pub fn resolve_dir_under_roots(
path: &str,
allowed_dirs: &[String],
) -> Option<PathBuf>Expand description
Resolve a path under the first allowed dir for directory listing.
Differs from resolve_under_roots in that it accepts directories,
non-existent paths included only after canonicalisation succeeds.