Function sqlar::with_each_entry[][src]

pub fn with_each_entry(
    path: impl AsRef<Path>,
    decompress: bool,
    f: impl FnMut(&Entry) -> Result<()>
) -> Result<()>

Iterate over each entry in the archive.

Arguments

  • path - path to the archive.
  • decompress - wether to get and decompress the file data. If false no data is included.
  • f - the function to run on each entry.

Returns

Ok(()) if iteration over all entries succeeds. Err(e) if fetching entries fails, parsing entries fails or the user-supplied callback fails.