parse_path

Function parse_path 

Source
pub fn parse_path<P>(path: P) -> Result<Vec<FileInfo>, Error>
where P: AsRef<Path>,
Expand description

Parses out the source file information from a file at a given path

§Arguments

  • path - The path of the file to read the source info from

§Example

let elf_file = std::path::PathBuf::from("path_to_binary");
let files = compiledfiles::parse_path(&elf_file).unwrap();
for file in files {
    println!("{:?}", file);
}