pub fn normalize_solidity_import_path(
    directory: impl AsRef<Path>,
    import_path: impl AsRef<Path>
) -> Result<PathBuf, SolcIoError>
Expand description

Returns a normalized Solidity file path for the given import path based on the specified directory.

This function resolves ./ and ../, but, unlike canonicalize, it does not resolve symbolic links.

The function returns an error if the normalized path does not exist in the file system.

See also: https://docs.soliditylang.org/en/v0.8.23/path-resolution.html