• 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: copyItemAtPath takes double time than the Finder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: copyItemAtPath takes double time than the Finder


  • Subject: Re: copyItemAtPath takes double time than the Finder
  • From: Mike Abdullah <email@hidden>
  • Date: Wed, 19 Jan 2011 23:15:13 +0000

Well you shouldn't be using this synchronous API for long-running copy operations, since it can't be cancelled or give progress.

Instead use FSCopyObjectAsync().

On 19 Jan 2011, at 21:42, Leonardo wrote:

> Hi,
> I have checked, the Finder, takes only 7 seconds to copy a 500MB dmg file.
> The copyItemAtPath API takes 18 seconds to copy the same file.
> Why? Is a way to make copyItemAtPath run at the same Finder speed?
> If not, which API should I use to get the same performance?
>
> I use:
>    [[NSFileManager defaultManager] copyItemAtPath:src toPath:dst
>        error:&err];
>
> Architectures: ppc, i386
> Base SDK: Mac OS X 10.5
> Valid Architectures: i386 ppc ppc64 ppc7400 ppc970 x86_64
> C/C++ Compiler Version: GCC 4.2
> Optimization Level: Fastest [-O3]
>
>
> Regards
> -- Leonardo
>
>
> _______________________________________________
>
> 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

_______________________________________________

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

  • Follow-Ups:
    • Re: copyItemAtPath takes double time than the Finder [ SOLVED]
      • From: Leonardo <email@hidden>
    • Re: copyItemAtPath takes double time than the Finder
      • From: "Gary L. Wade" <email@hidden>
References: 
 >copyItemAtPath takes double time than the Finder (From: Leonardo <email@hidden>)

  • Prev by Date: copyItemAtPath takes double time than the Finder
  • Next by Date: Re: Odd Crash when adding table columns manually
  • Previous by thread: copyItemAtPath takes double time than the Finder
  • Next by thread: Re: copyItemAtPath takes double time than the Finder
  • Index(es):
    • Date
    • Thread