deno_path_util

Function resolve_path

Source
pub fn resolve_path(
    path_str: &str,
    current_dir: &Path,
) -> Result<Url, PathToUrlError>
Expand description

Converts a string representing a relative or absolute path into a ModuleSpecifier. A relative path is considered relative to the passed current_dir.