Function zim::validate

Function Documentation

bool zim::validate(const std::string &zimPath, IntegrityCheckList checksToRun)

Check the integrity of the zim file.

Run the specified checks to verify the zim file is valid (with regard to the zim format). Some checks can be quite slow.

Parameters:
  • zimPath – The path of the ZIM archive to be checked.

  • checksToRun – The set of checks to perform.

Returns:

False if any check fails, true otherwise.