LISTZIPCONTENTS

Lists the contents of a zip file.
834 Downloads
Updated 6 Jul 2011

View License

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 (2024). LISTZIPCONTENTS (https://www.mathworks.com/matlabcentral/fileexchange/32089-listzipcontents), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2008a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on File Operations in Help Center and MATLAB Answers
Tags Add Tags
Acknowledgements

Inspired: zipContentsInfo

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0