xunzGetCurrentFileInfo.vi

Get Info about the current file

The file_info structure will contain some info about the current file.

The filename string will be copied into FileName.

The central-header version of the extra field information (if any) will be copied into extraField.

The comment string (if any) of the file will be copied in Comment.

typedef

struct

{

uLong version; /* version creator */

uLong version_needed; /* version needed to extract */

uLong flag; /* general purpose bit flag*/

uLong compression_method; /* compression method */

uLong dosDate; /* last mod file date in Dos fmt */

uLong crc; /* crc-32*/

uLong compressed_size; /* compressed size */

uLong uncompressed_size; /* uncompressed size */

uLong size_filename; /* filename length */

uLong size_file_extra; /* extra field length */

uLong size_file_comment; /* file comment length */

uLong disk_num_start; /* disk number start */

uLong internal_fa; /* internal file attributes */

uLong external_fa; /* external file attributes */

tm_xzip tmu_date; /* data/time structure */

} xunz_file_info;

typedef

struct

{

uInt tm_sec; /* seconds after the minute - [0,59] */

uInt tm_min; /* minutes after the hour - [0,59] */

uInt tm_hour; /* hours since midnight - [0,23] */

uInt tm_mday; /* day of the month - [1,31] */

uInt tm_mon; /* months since January - [0,11] */

uInt tm_year; /* years - [1980..2044] */

} tm_xzip;


Connector Pane

xunzGetCurrentFileInfo.vi


Controls and Indicators

cdlrn

file/in

"unzip" filehandle from sunzOpen.vi

cu32

MaxExtraFieldSize

cu32

MaxCommentSize

ii32

Result

icclst

file_info

typedef

struct

{

uLong version; /* version creator */

uLong version_needed; /* version needed to extract */

uLong flag; /* general purpose bit flag*/

uLong compression_method; /* compression method */

uLong dosDate; /* last mod file date in Dos fmt */

uLong crc; /* crc-32*/

uLong compressed_size; /* compressed size */

uLong uncompressed_size; /* uncompressed size */

uLong size_filename; /* filename length */

uLong size_file_extra; /* extra field length */

uLong size_file_comment; /* file comment length */

uLong disk_num_start; /* disk number start */

uLong internal_fa; /* internal file attributes */

uLong external_fa; /* external file attributes */

tm_xzip tmu_date; /* data/time structure */

} xunz_file_info;

typedef

struct

{

uInt tm_sec; /* seconds after the minute - [0,59] */

uInt tm_min; /* minutes after the hour - [0,59] */

uInt tm_hour; /* hours since midnight - [0,23] */

uInt tm_mday; /* day of the month - [1,31] */

uInt tm_mon; /* months since January - [0,11] */

uInt tm_year; /* years - [1980..2044] */

} tm_xzip;

istr

FileName

istr

extraField

istr

Comment

idlrn

file/out

"unzip" filehandle from sunzOpen.vi