Print a table of contents for the zip file.
(self, file=None)
| 1464 | return self.filelist |
| 1465 | |
| 1466 | def printdir(self, file=None): |
| 1467 | """Print a table of contents for the zip file.""" |
| 1468 | print("%-46s %19s %12s" % ("File Name", "Modified ", "Size"), |
| 1469 | file=file) |
| 1470 | for zinfo in self.filelist: |
| 1471 | date = "%d-%02d-%02d %02d:%02d:%02d" % zinfo.date_time[:6] |
| 1472 | print("%-46s %s %12d" % (zinfo.filename, date, zinfo.file_size), |
| 1473 | file=file) |
| 1474 | |
| 1475 | def testzip(self): |
| 1476 | """Read all the files and check the CRC.""" |