Welcome, Guest. Please login or register.

Author Topic: lha preserve dir timestamp  (Read 2153 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline orangeTopic starter

  • Hero Member
  • *****
  • Join Date: Dec 2003
  • Posts: 2796
    • Show only replies by orange
lha preserve dir timestamp
« 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?
Better sorry than worry.
 

Offline Mark

  • Jr. Member
  • **
  • Join Date: Apr 2002
  • Posts: 94
    • Show only replies by Mark
Re: lha preserve dir timestamp
« Reply #1 on: January 29, 2014, 06:08:26 AM »
I use ReDate.
 

Offline orangeTopic starter

  • Hero Member
  • *****
  • Join Date: Dec 2003
  • Posts: 2796
    • Show only replies by orange
Re: lha preserve dir timestamp
« Reply #2 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.
Better sorry than worry.
 

Offline Thomas

Re: lha preserve dir timestamp
« Reply #3 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.

Offline orangeTopic starter

  • Hero Member
  • *****
  • Join Date: Dec 2003
  • Posts: 2796
    • Show only replies by orange
Re: lha preserve dir timestamp
« Reply #4 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?
Better sorry than worry.
 

Offline Thomas

Re: lha preserve dir timestamp
« Reply #5 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.

Offline pVC

Re: lha preserve dir timestamp
« Reply #6 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.
Daily MorphOS user and Amiga active.
 

Offline Oldsmobile_Mike

Re: lha preserve dir timestamp
« Reply #7 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:
Amiga 500: 2MB Chip|16MB Fast|30MHz 68030+68882|3.9|Indivision ECS|GVP A500HD+|Mechware card reader + 8GB CF|Cocolino|SCSI DVD-RAM
Amiga 2000: 2MB Chip|136MB Fast|50MHz 68060|3.9|Indivision ECS + GVP Spectrum|Mechware card reader + 8GB CF|AD516|X-Surf 100|RapidRoad|Cocolino|SCSI CD-RW
 Amiga videos and other misc. stuff at https://www.youtube.com/CompTechMike/videos