Print a table of contents for the zip file.
(self, file=None)
| 1615 | return self.filelist |
| 1616 | |
| 1617 | def printdir(self, file=None): |
| 1618 | """Print a table of contents for the zip file.""" |
| 1619 | print("%-46s %19s %12s" % ("File Name", "Modified ", "Size"), |
| 1620 | file=file) |
| 1621 | for zinfo in self.filelist: |
| 1622 | date = "%d-%02d-%02d %02d:%02d:%02d" % zinfo.date_time[:6] |
| 1623 | print("%-46s %s %12d" % (zinfo.filename, date, zinfo.file_size), |
| 1624 | file=file) |
| 1625 | |
| 1626 | def testzip(self): |
| 1627 | """Read all the files and check the CRC. |
no outgoing calls