Re: Remote copy on AFP volume
Re: Remote copy on AFP volume
- Subject: Re: Remote copy on AFP volume
- From: Quinn <email@hidden>
- Date: Tue, 22 Apr 2008 10:17:59 +0100
At 12:23 -0700 21/4/08, James Bucanek wrote:
PBFSCopyFileSync appears to be Leopard only. I need something that
will work on Tiger.
PBFSCopyFileSync was introduced as a FSSpec-free replacement for
PBHCopyFileSync (because 64-bit code doesn't support FSSpecs). So,
if you did need to do this sort of thing on pre-10.5 systems, you
could use PBHCopyFileSync if PBFSCopyFileSync wasn't available.
However....
Is there a good reason to use PBFSCopyFileSync over
FSCopyObjectSync? Should I use PBFSCopyFileSync instead of
FSCopyObjectSync if it's available?
Always use FSCopyObjectSync. PBFSCopyFileSync/PBHCopyFileSync are
low-level routines that are exported for legacy reasons.
FSCopyObjectSync is a proper API that takes care of all of the
nittygritty details of copying.
Notably, both PBFSCopyFileSync and PBHCopyFileSync are parameter
block routines, with no nice wrappers. You should consider that a
hint (-:
S+E
--
Quinn "The Eskimo!" <http://www.apple.com/developer/>
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Filesystem-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden