zipContentsInfo

版本 1.0.0.0 (6.7 KB) 作者: Jake August
Get details of the contents within a ZIP archive, like file names, original size, CRC, etc.
66.0 次下载
更新时间 2016/4/18

查看许可证

A script to detail ZIP archive's contents
zipStruct = zipContentsInfo( zipFilepath )
e.g. zipStruct = zipContentsInfo( 'D:\myArchive.zip' )
zipContentsInfo is based on LISTZIPCONTENTS (C) Bob Hamans, 2011
http://mathworks.com/matlabcentral/fileexchange/32089
INPUT:
* zipFilepath - a char or cellstr specifying the name/path of ZIP file
Supports wildcards, e.g. 'D:\file*.zip'
* AppendZipPath - [optional] logical to append ZIP file path to file
names in ZIP struct. Useful if getting contents of multiple ZIP.
default = false
* ShowWarnings - [optional] logical for showing warnings. default = true
e.g. zipStruct = zipContentsInfo( 'D:\a.zip', 'ShowWarnings', false )
OUTPUT:
* zipStruct - struct detailing file contents, similar to dir(...)
name, date, [uncompressed] bytes, isdir, datenum, bytesCompressed, CRC, comment
* zipReadOK - [optional] logical if ZIP file read in was OK, i.e. true = good; false = bad
e.g. [ zipStruct, zipReadOK ] = zipContentsInfo(...)

KNOWN ISSUES:
* datenum differs from other ZIP archive viewing tools.
* does NOT support password-protected/encrypted archives

(C) Jake D.L. August, 2016/Apr/17
august(dot)jdbl(at)outlook(dot)com

引用格式

Jake August (2024). zipContentsInfo (https://www.mathworks.com/matlabcentral/fileexchange/56619-zipcontentsinfo), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2014b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 File Compression 的更多信息
致谢

参考作品: LISTZIPCONTENTS

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0.0

Incorrectly detailed 1.0 upload.