Re: Recursive file copy with good progress data?
Re: Recursive file copy with good progress data?
- Subject: Re: Recursive file copy with good progress data?
- From: Mike Abdullah <email@hidden>
- Date: Fri, 15 Feb 2013 09:32:43 +0000
On 15 Feb 2013, at 05:22, Graham Cox <email@hidden> wrote:
>
> On 15/02/2013, at 1:55 PM, Jim Zajkowski <email@hidden> wrote:
>
>> s there anything that provides the level of progress that FSCopyObjectAsync does but gives the callback more control like copyfile() does?
>
>
> You could look into NSFileManager's -copyItemAtURL:toURL:error: method which, in conjunction with a delegate implementing appropriate methods, gives you both progress feedback as well as a mechanism for error recovery. Not sure what performance will be like though.
The glaring flaw in NSFileManager for this is it can't give progress callbacks for individual files; something that becomes quite important when copying a GB of data! It might be interesting to use NSFileManager's directory enumeration features to drive the copying of individual files though.
_______________________________________________
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