Re: FSCatalogInfo randomness
Re: FSCatalogInfo randomness
- Subject: Re: FSCatalogInfo randomness
- From: Rosyna <email@hidden>
- Date: Tue, 30 Oct 2007 10:47:40 -0700
A -50 (paramErr) is also sometimes called "programmers an idiot
error" as 90% of the time it occurs it is because the developer
passed the wrong parameters to a function or they didn't error-check
the results of one function and passed them to another. When dealing
with files, this can lead to very bad results.
Always error check in an insanely insane manner when dealing with
file APIs. Last thing you'd want is a file creation API to work, but
a permissions setting call to fail.
Ack, at 10/30/07, email@hidden said:
So I just had this problem again. A directory was listed as empty, although
it isn't. There were no others errors except LSCopyItemInfoForURL
returned paramErr (-50). But as I said in my previous post, this error is
returned for almost all files, even when the directory contents is listed
properly.
--
Sincerely,
Rosyna Keller
Technical Support/Carbon troll/Always needs a hug
Unsanity: Unsane Tools for Insanely Great People
It's either this, or imagining Phil Schiller in a thong.
_______________________________________________
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