Re: First timer: Finder Copy vs. cp
Re: First timer: Finder Copy vs. cp
- Subject: Re: First timer: Finder Copy vs. cp
- From: Terry Lambert <email@hidden>
- Date: Wed, 9 Aug 2006 12:42:47 -0700
On Aug 7, 2006, at 2:01 PM, Jeffrey Ellis wrote:
Hi--
If the Finder is based on Darwin, why are there no direct commands
which will replicate a Finder Copy, i.e., copy all the metadata for
a given file, not just it’s resource forks as in ditto or rsync?
I guess basically, the question from a programming standpoint, is
there a way to replicate a Finder Copy without actually calling the
UI?
Sorry for the n00b-ness of this question.
Thanks :)
"man cp".
The short answer is that the command line utility "cp" will copy the
metadata by default unless you tell it not to by specifying "-X" as
one of the arguments. So the support is already there, and on by
default.
If the metadata in question includes ACLs, then you will want to
specify "-p" to "preserve attributes" - primarily, protections and
timestamps - of which ACLs are a subset.
-- Terry
_______________________________________________
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