@staticmethod<EOL><INDENT>def verify(path):<DEDENT>
valid = False<EOL>try:<EOL><INDENT>zf = zipfile.ZipFile(path)<EOL><DEDENT>except (zipfile.BadZipfile, IsADirectoryError):<EOL><INDENT>pass<EOL><DEDENT>else:<EOL><INDENT>names = sorted(zf.namelist())<EOL>names = [nn for nn in names if nn.endswith("<STR_LIT>")]<EOL>for name in names:<EOL><INDENT>with zf.open(name) as pt:<EOL><INDENT>fd = io.BytesIO(pt.read())<EOL>if SingleTifHolo.verify(fd):<EOL><INDENT>valid = True<EOL>break<EOL><DEDENT><DEDENT><DEDENT>zf.close()<EOL><DEDENT>return valid<EOL>
Verify that `path` is a zip file containing TIFF files