Author Topic: Newbie Question  (Read 2671 times)

dderry

  • Newbie
  • *
  • Posts: 1
    • View Profile
Newbie Question
« on: February 06, 2014, 03:43:42 PM »
I have been using the Java Zip API and am generally satisfied with it for my purposes, except for one thing which is causing me to look for an alternative.

I have a process which reclaims disc space by finding jobs that are older than a specified number of days, and then zipping those jobs into an 'archive' folder. The problem that I have is that the Java API does not retain file timestamps, but stamps every file with the time that the archive was created. Since the archives are being created a month or more after the job ran we are losing that information.

My question then is whether Zip4j retains the file's timestamp, or at the least has that capability.

Thanks

Mueller

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: Newbie Question
« Reply #1 on: February 10, 2014, 01:35:24 PM »
I had a quick look into one of my test archives:
- All Created dates are removed
- All Accessed dates are removed
- The Modified date is kept, except on renamed entries. If you rename it it will have the current date.

I do not know about any options to change this.

Unitirys

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Newbie Question
« Reply #2 on: September 03, 2015, 09:27:18 AM »
I wish you a lot of information.