QDOS zip info

Anything QL Software or Programming Related.
Post Reply
tcat
Super Gold Card
Posts: 633
Joined: Fri Jan 18, 2013 5:27 pm
Location: Prague, Czech Republic

QDOS zip info

Post by tcat »

Hi All,

Anyone tried to inspect zip archive for QDOS?
I did, because I was so curious where the file header information is stored.

I tried on linux first displaying the archive content of the QED.ZIP
$ zipinfo -v qed.zip

But I was not able to see the header information, only the QDOS extra subfields.
So I have added a few lines to zipinfo.c source file, and compiled to a new binary.
I can now display not only the header but also some other UTC date/time field.

Not sure I am doing anything usefull, but just thinking about the purpose of the additional UTC date/time field, there are already three dates in the header itself, correct?
Why there is yet another one?

Please see screen capture here.

Central directory entry #1:
---------------------------

QED

offset of local header from start of archive: 0 (00000000h) bytes
file system or operating system of origin: SMS/QDOS
version of encoding software: 2.2
........
The central-directory extra field contains:
- A subfield with ID 0xfb4a (SMS/QDOS) and 72 data bytes.
The QDOS extra field subtype is `QDOS'
00 00 1e dc 00 01 00 00
06 00 00 00 00 00 00 03
51 45 44 00 00 00 00 00
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
00 00 00 00 47 9d e7 27
00 00 00 02 00 00 00 00.
- A subfield with ID 0x5455 (universal time) and 5 data bytes.
The local extra field has UTC/GMT modification time
a7 74 b0 36.

Many thanks
TCAT


tcat
Super Gold Card
Posts: 633
Joined: Fri Jan 18, 2013 5:27 pm
Location: Prague, Czech Republic

Re: QDOS zip info

Post by tcat »

As I learnt on QDOS, ZIPINFO can be executed as follows,

ew unzip;'-ZMv qed'

where options mean,

-v verbose, showing QDOS specific fields
-Z for zipinfo mode
-M for paging the output through MORE

TCAT


Post Reply