• 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: Recursive file copy with good progress data?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Recursive file copy with good progress data? (From: Jim Zajkowski <email@hidden>)
 >Re: Recursive file copy with good progress data? (From: Graham Cox <email@hidden>)

  • Prev by Date: How to use NSManagedObjectContext, NSManagedObjectModel, NSEntityDescription, NSManagedObject
  • Next by Date: Re: Dynamic Object, How to implement B-Tree in Objective-c, Archiving on each B-Tree node
  • Previous by thread: Re: Recursive file copy with good progress data?
  • Next by thread: lengthOfBytesUsingEncoding not correct
  • Index(es):
    • Date
    • Thread