Re: What is the best way to copy files
Re: What is the best way to copy files
- Subject: Re: What is the best way to copy files
- From: "Sean McBride" <email@hidden>
- Date: Sat, 10 Jan 2009 18:00:37 -0500
David (email@hidden) on 2009-01-10 4:23 PM said:
>I'm looking for what I think are some fairly common requirements from
>a file copy mechanism.
>- simple. Why write something if you can reuse.
>- support multi-threading so that you can stay responsive to the UI
>while copying large files.
>- good error handling. To be able to clearly handle and report errors.
>- provides ways to control, ie cancel a large file copy in progress.
In that case, Foundation APIs will not help you. I suggest
FSCopyObjectAsync or similar File Manager APIs. There are async
options, good error reporting, etc.
(The fact that these APIs are 'Carbon' (a vague term anyway) does not
mean they are obsolete, a claim you may see sometimes.)
Sean
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden