Utility classes and functions

class mtrchk.org.momotor.check.zip.matcher.ZipFileInfo(dirname, file, name, info)

Information about a file in a zip file

is_dir()

Check if the object represents a directory

Return type:

bool

dirname: str

Name of the directory containing the file

file: ZipFile

Zip file containing the file

info: ZipInfo | None

Zip info object for the file. None if the object represents a directory.

name: str

Name of the file

class mtrchk.org.momotor.check.zip.matcher.ZipMatcher(checklet)

Implementation of BaseMatcher for an input list containing ZipFileInfo objects.

mtrchk.org.momotor.check.zip.matcher.get_zip_files_list(zip_files)

Get a list of files from zip files

Parameters:

zip_files (Iterable[File]) – List of zip files

Return type:

FilterableTuple[ZipFileInfo]

Returns:

List of files from zip files