Re: First timer: Finder Copy vs. cp
Re: First timer: Finder Copy vs. cp
- Subject: Re: First timer: Finder Copy vs. cp
- From: Piers Uso Walter <email@hidden>
- Date: Thu, 10 Aug 2006 03:59:48 +0200
Am 10. Aug 2006 um 02:50 schrieb Dan Shoop:
One telling issue is that the Finder properly preserves Creation
Date, while command line tools do not.
This is interesting. Do you know a way to even determine the creation
date of a file using the command line?
The Unix FAQs (which, of course, may possibly not apply here) seem to
indicate that this should not be possible.
Regarding command line tools and preservation of file creation date
(as indicated by Finder), you may want to try /Developer/Tools/CpMac,
which is available as part of the developer tools.
A short test seems to indicate that CpMac-p does indeed preserve the
creation date:
echo "1" > test
sleep 60; echo "2" >> test
(Finder displays 03:56 AM as the creation date of test and 03:57 AM
as its modification date)
sleep 60; /Developer/Tools/CpMac -p test test-copy
(Finder displays 03:56 AM as the creation date of test-copy and 03:57
AM as its modification date)
With kind regards
Piers
--
Piers Uso Walter <email@hidden>
ilink Kommunikationssysteme GmbH
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden