pub fn source_files(root: &Path, extensions: &[&str]) -> 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
ยงExamples
use foundry_compilers_core::utils;
let sources = utils::source_files("./contracts".as_ref(), &utils::SOLC_EXTENSIONS);