[][src]Function sarchive::utils::read_file

pub fn read_file(
    path: &Path,
    filename: &Path,
    iters: Option<u32>
) -> Result<Vec<u8>, Error>

Read file contents of the file given by the path. Separating the directory from the filename (which may contain directory hierarchy) is that we are able to monitor the path in case it dissapears (e.g., when a job is removed before we can get the information)

We return the raw bytes, so the contents can be processed later if needed