pub fn source_files(root: impl AsRef<Path>) -> Vec<PathBuf>
Expand description

Returns a list of absolute paths to all the solidity files under the root, or the file itself, if the path is a solidity file.

This also follows symlinks.

NOTE: this does not resolve imports from other locations

§Example

use ethers_solc::utils;
let sources = utils::source_files("./contracts");