[][src]Function delharc::parse_file

pub fn parse_file<P: AsRef<Path>>(path: P) -> Result<LhaDecodeReader<File>>

Attempts to open a file from a filesystem in read-only mode and on success returns an instance of LhaDecodeReader with the first parsed LHA file header, ready to decode the content of the first archived file.

Errors

This function will return an error if an opened file is not an LHA/LZH file or the header couldn't be recognized. Other errors may also be returned from File::open and from attempts to read the file.