Amiga.org

Amiga computer related discussion => Amiga Software Issues and Discussion => Topic started by: orange on January 23, 2014, 12:33:06 AM

Title: lha preserve dir timestamp
Post by: orange on January 23, 2014, 12:33:06 AM
when I unpack .lha, all directories seem to have 'today' timestamp. is there  a way to restore original time?
Title: Re: lha preserve dir timestamp
Post by: Mark on January 29, 2014, 06:08:26 AM
I use ReDate. (http://aminet.net/package/util/cli/ReDate)
Title: Re: lha preserve dir timestamp
Post by: orange on January 29, 2014, 12:33:02 PM
but there must be a way to modify archive, while preserving dates?
lha does store dir timestamp (when listing), it just doesn't use it when unpacking, for some reason.
Title: Re: lha preserve dir timestamp
Post by: Thomas on January 29, 2014, 04:17:59 PM
It does use it. The problem is the order in which changes are done and that the file system updates the dir's time stamp when a file is added to it.

Lha does

makedir drawer
setdate drawer
store drawer/file1 <- this changes the drawer's date to today.
setdate drawer/file1

and so on.

Lha should set date of drawer when it leaves it, not when it enters it.

Can only be changed by the author. Send him a bug report.
Title: Re: lha preserve dir timestamp
Post by: orange on January 29, 2014, 04:35:11 PM
thanks Thomas.
in case bug report is ignored, could this step:
"store drawer/file1 <- this changes the drawer's date to today."
be modified in OS, so the drawer's date isn't changed?
Title: Re: lha preserve dir timestamp
Post by: Thomas on January 29, 2014, 04:57:10 PM
Yes, but the OS isn't maintained any more since almost 20 years. I am quite sure that *this* bug report will be ignored for sure. Not to mention that this breaks functionality which other programs might rely on.
Title: Re: lha preserve dir timestamp
Post by: pVC on January 29, 2014, 05:09:00 PM
Just for curiosity, if you browse into archive under MorphOS and copy contents that way, dates on directories are preserved. But I haven't found other way to preserve them.. yet. Browsing with XADopus under Magellan or unpacking with XAD command line tools don't preserve them either.
Title: Re: lha preserve dir timestamp
Post by: Oldsmobile_Mike on January 29, 2014, 05:35:34 PM
Quote from: Thomas;758171
I am quite sure that *this* bug report will be ignored for sure

Never be so sure.  A few days ago I sent a bug report to the author of "Matrix" blanker (regarding incompatibility with the latest release of Picasso96), and was quite surprised to receive a response back from him.  Of course he said he'd stopped development nearly a decade ago but he mentioned that if he's able to access his old disks he'd release the source code.  So you never know, and I was happy to give him a blast of nostalgia, LOL.  :biglaugh: