Running zipfile From the Command Line
zipfile From the Command Line. Python’s
zipfile also offers a minimal command-line interface that allows you to access the module’s main functionality quickly. For example, you can use the
--list option as seen on-screen to list the content of an existing ZIP file.
The new folder will contain the current files in the
sample.zip archive. The final option that you can use with
zipfile from the command line is
--test. This option allows you to test if a given file is a valid ZIP file.
Become a Member to join the conversation.