MCPcopy Index your code
hub / github.com/python/cpython / printdir

Method printdir

Lib/zipfile/__init__.py:1617–1624  ·  view source on GitHub ↗

Print a table of contents for the zip file.

(self, file=None)

Source from the content-addressed store, hash-verified

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.

Callers 5

zip_testMethod · 0.80
zip_testMethod · 0.80
test_list_commandMethod · 0.80
mainFunction · 0.80

Calls

no outgoing calls

Tested by 4

zip_testMethod · 0.64
zip_testMethod · 0.64
test_list_commandMethod · 0.64