MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / printdir

Method printdir

tools/python-3.11.9-amd64/Lib/zipfile.py:1466–1473  ·  view source on GitHub ↗

Print a table of contents for the zip file.

(self, file=None)

Source from the content-addressed store, hash-verified

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."""

Callers 1

mainFunction · 0.80

Calls 1

printFunction · 0.50

Tested by

no test coverage detected