Function ethers_solc::utils::canonicalized
source · Expand description
Returns the same path config but with canonicalized paths.
This will take care of potential symbolic linked directories.
For example, the tempdir library is creating directories hosted under /var/
, which in OS X
is a symbolic link to /private/var/
. So if when we try to resolve imports and a path is
rooted in a symbolic directory we might end up with different paths for the same file, like
private/var/.../Dapp.sol
and /var/.../Dapp.sol
This canonicalizes all the paths but does not treat non existing dirs as an error