• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Remote copy on AFP volume
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: Remote copy on AFP volume (From: James Bucanek <email@hidden>)

  • Prev by Date: Re: Remote copy on AFP volume
  • Next by Date: Disable browsing for SMB shares in Leopard?
  • Previous by thread: Re: Remote copy on AFP volume
  • Next by thread: Re: Remote copy on AFP volume
  • Index(es):
    • Date
    • Thread