gzContentsInfo

版本 1.0.0.0 (53.3 KB) 作者: Jake August
function to get header and trailer info from GZip files
32.0 次下载
更新时间 2016/4/18

查看许可证

function to get header and trailer info from GZip files
[gz, br] = gzContentsInfo( gzFilePath )
e.g. [gz, br] = gzContentsInfo( 'D:\myfile.ext.gz' );
INPUT:
gzFilePath - name or path as char or cellstr of GZip file(s),
supports wildcards, e.g.
'D:\arc.ext.gz'
'D:\*.gz'
{'D:\arc1.ext.gz' 'D:\arc2.ext.gz'}

OUTPUT:
gz - structured variable modeled after MATLAB's dir(...) with extra
fields related to the GZip file, e.g. gz...
.name = original name of the file*
.date = date string based on MTIME*
.bytes = ISZIE in bytes
.datenum = MATLAB's datenum based on MTIME's format
.ValidID = logical on GZip's header validation
.Compression = string of method (CM) and mode (XFL), e.g. deflate-4
.isText = logical if uncompressed data is likely plaintext
.OS = string of OS declared during compression
.Comment = if declared, plain text comment
.CRC32 = hex string of CRC32 of uncompressed data
* if info NOT explicit, it is inferred from gzFilePath

br - raw (b)inary (r)eads of GZip file and intermediate calculations

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

引用格式

Jake August (2024). gzContentsInfo (https://www.mathworks.com/matlabcentral/fileexchange/56620-gzcontentsinfo), MATLAB Central File Exchange. 检索时间: .

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

Community Treasure Hunt

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

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

Adding better description for File.