Function parse_file

Source
pub fn parse_file(path: impl AsRef<Path>) -> Result<Filelist, Box<dyn Error>>
Expand description

Parses a filelist file.

Environment variables represented with paranthesis or curly braces (i.e. $() or ${}) will be automatically substituted.

§Arguments

  • path - The path to the filelist

§Errors

Returns an error if the filelist in path cannot be read. Also returns error if any of the nested filelists cannot be read.