LISTZIPCONTENTS

Lists the contents of a zip file.

You are now following this Submission

LISTZIPCONTENTS(ZIPFILENAME) lists the archived contents of ZIPFILENAME

ZIPFILENAME is a string specifying the name of the zip file.

ZIPFILENAME can include the directory name; otherwise, the file must be
in the current directory or in a directory on the MATLAB path.

FILENAMES = LISTZIPCONTENTS(ZIPFILENAME) lists the zip file contents
and returns the file names into the string cell array FILENAMES.

Unsupported zip files
---------------------
LISTZIPCONTENTS does not support password-protected or encrypted zip
archives.

Examples
--------
% List the contents of demos.zip
listzipcontents('demos.zip')

Cite As

Bob Hamans (2026). LISTZIPCONTENTS (https://uk.mathworks.com/matlabcentral/fileexchange/32089-listzipcontents), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired: zipContentsInfo

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0