image thumbnail

LISTZIPCONTENTS

version 1.0.0.0 (1.6 KB) by Bob Hamans
Lists the contents of a zip file.

766 Downloads

Updated 06 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 (2022). 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
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!