Re: First timer: Finder Copy vs. cp
Re: First timer: Finder Copy vs. cp
- Subject: Re: First timer: Finder Copy vs. cp
- From: Jeffrey Ellis <email@hidden>
- Date: Thu, 10 Aug 2006 14:50:10 -0700
- Thread-topic: First timer: Finder Copy vs. cp
Title: Re: First timer: Finder Copy vs. cp
on 8/10/06 9:36 AM, Piers Uso Walter <email@hidden> wrote:
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
Hi, Piers--
Yes, I think I saw that as well. This suggests that cpMac must be reading the creation date from somewhere. Is the source to cpMac available anywhere?
Thanks again :)
All My Best,
Jeffrey
_______________________________________________
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