jmichaelh / xar

Automatically exported from code.google.com/p/xar
0 stars 0 forks source link

Failure to update directory timestamp properly #58

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Problem: subdirectories do not have timestamps retained during an unxar process 
if they have 
files in them.

What steps will reproduce the problem?
1. Create a parent directory with two subdirectories. Create a file in each 
subdirectory.
2. Apply some test timestamps to the files in the subdirectory
3. xar the entire parent directory
4. unxar the new archive
5. Compare timestamps on the original and unxar'd subdirectories

What is the expected output? What do you see instead?

The unxar'd subdirectories should have the same timestamps as the original 
subdirectories. 
Instead, they have the current timestamp applied to them. This is likely 
because OS X modifies 
the timestamp on the parent directory when xar creates the files within the 
directories.

What version of the product are you using? On what operating system?

xar 1.5.2 --  OS X 10.4.11

Please provide any additional information below.

 I compiled xar from source using the configuration flags in the Macports portfile for xar.

Original issue reported on code.google.com by charmed....@gmail.com on 2 Aug 2008 at 4:00

Attachments:

GoogleCodeExporter commented 8 years ago
This should be resolved in r222.

Original comment by bbraun on 19 Aug 2008 at 3:13