Re: First timer: Finder Copy vs. cp
Re: First timer: Finder Copy vs. cp
- Subject: Re: First timer: Finder Copy vs. cp
- From: Dan Shoop <email@hidden>
- Date: Thu, 10 Aug 2006 14:09:45 -0400
At 3:59 AM +0200 8/10/06, Piers Uso Walter wrote:
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?
GetFileInfo
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.
It's been marked as deprecated, IIRC, and I don't think any further
development is being considered. AFAIK we've been told to use cp now.
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)
You may wish to also compare the rest of the filesystem metadata.
While it does copy creation date, yes, it fails to copy many of the
other attributes.
CpMac fails to copy:
- BSD Flags (except uchg)
- ACLs
- arbitrarily named forks (EAs)
- POSIX ownerships
- symlinks and symlink ownerships
and perhaps more.
--
-dhan
------------------------------------------------------------------------
Dan Shoop AIM: iWiring
Systems & Networks Architect http://www.ustsvs.com/
email@hidden http://www.iwiring.net/
1-714-363-1174
pgp key fingerprint: FAC0 9434 B5A5 24A8 D0AF 12B1 7840 3BE7 3736 DE0B
iWiring provides systems and networks support for Mac OS X, unix, and
Open Source application technologies at affordable rates.
_______________________________________________
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