Not true. I did bool exists = [[NSFileManager defaultManager] fileExistsAtPath:prefsrcpath]; on the source path and it returned true. I found the error though, my destination path was in error!

-koko


On Apr 13, 2010, at 12:43 PM, Kevin Perry wrote:

It's referring to the source path. The documentation specifically states that no file should exist at the destination path. So, one can deduce that NSFileManager wouldn't report a "no such file" error if there was no file there, since that is what is expected.

-Kevin

On Apr 13, 2010, at 11:31 AM, k...@highrolls.net wrote:

Using NSFileManager I get the error messaged referenced in the Subject Line.

But, which is it referring to ... the copyItemAtPath or the toPath

bool rtx2 = [[NSFileManager defaultManager] copyItemAtPath:prefsrcpath toPath:prefdstpath error:&error];

-koko
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/kperry%40apple.com

This email sent to kpe...@apple.com



_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to