• 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
Strange issue copying many files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Strange issue copying many files


  • Subject: Strange issue copying many files
  • From: Ian was here <email@hidden>
  • Date: Tue, 29 Nov 2005 11:29:46 -0800 (PST)

I have a method that copies files from one directory
to another. Sometimes the number of files can be in
the thousands. I am using the NSFileManger copyPath
method in a for-next loop to copy each file.



for ( i = 0; i < numOfPaths; i++ )
{
   err = [fm copyPath:srcPath toPath:destPath
handler:nil]
}



Here's the strange part: if I run my application
through the debugger, this works fine. If I run
normally (development or deployment builds), this
fails. err = NO some of the time, but the files will
get copied, except that their size is zero K. I don't
recall having this problem before. I'm wondering if
this could be an issue with XCode 2.2





__________________________________
Yahoo! Mail - PC Magazine Editors' Choice 2005
http://mail.yahoo.com
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Strange issue copying many files
      • From: Cameron Hayne <email@hidden>
    • Re: Strange issue copying many files
      • From: Ian was here <email@hidden>
  • Prev by Date: Problems with NSTreeController's removeObjectAtArrangedObjectIndexPath:
  • Next by Date: Re: Strange issue copying many files
  • Previous by thread: Problems with NSTreeController's removeObjectAtArrangedObjectIndexPath:
  • Next by thread: Re: Strange issue copying many files
  • Index(es):
    • Date
    • Thread