Strange issue copying many files
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