fragglet / lhasa

Free Software LHA implementation
http://fragglet.github.io/lhasa/
ISC License
80 stars 15 forks source link

No way to list the exact time of older files #40

Closed dfandrich closed 1 year ago

dfandrich commented 1 year ago

lha 1.14i supports the -v option to the v command to show the full date/time of files, but lhasa doesn't support that. For example:

$ lha v -v test/archives/lha_unix114i/h0_lh0.lzh
PERMISSION  UID  GID    PACKED    SIZE  RATIO METHOD CRC     STAMP            LV
---------- ----------- ------- ------- ------ ---------- ------------------- ---
gpl-2.gz
-rw-------  1000/1000     6829    6829 100.0% -lh0- b6d5 2009-12-31 16:00:00 [0]
---------- ----------- ------- ------- ------ ---------- ------------------- ---
 Total         1 file     6829    6829 100.0%            2023-02-13 23:30:11

But for lhasa:

$ src/lha v -v test/archives/lha_unix114i/h0_lh0.lzh
LHa: Error: -v No such file or directory

Without the -v option, it doesn't display the time (since the file is more than 6 months old):

$ src/lha v test/archives/lha_unix114i/h0_lh0.lzh
 PERMSSN    UID  GID    PACKED    SIZE  RATIO METHOD CRC     STAMP          NAME
---------- ----------- ------- ------- ------ ---------- ------------ -------------
-rw-------  1000/1000     6829    6829 100.0% -lh0- b6d5 Dec 31  2009 gpl-2.gz
---------- ----------- ------- ------- ------ ---------- ------------ -------------
 Total         1 file     6829    6829 100.0%            Feb 13 23:30

lhasa should similarly support the -v option to show full information about each entry, including time.

dfandrich commented 1 year ago

For completeness, this syntax for lhasa verbose mode doesn't error out but it also doesn't show the time, as lha does:

$ src/lha -vv test/archives/lha_unix114i/h0_lh0.lzh
 PERMSSN    UID  GID    PACKED    SIZE  RATIO METHOD CRC     STAMP
---------- ----------- ------- ------- ------ ---------- ------------
gpl-2.gz
-rw-------  1000/1000     6829    6829 100.0% -lh0- b6d5 Dec 31  2009 [0]
---------- ----------- ------- ------- ------ ---------- ------------
 Total         1 file     6829    6829 100.0%            Feb 13 23:30