Re: FSCatalogInfo randomness
Re: FSCatalogInfo randomness
- Subject: Re: FSCatalogInfo randomness
- From: Axel Andersson <email@hidden>
- Date: Tue, 30 Oct 2007 18:19:48 +0100
On Oct 30, 2007, at 17:43 , email@hidden wrote:
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.
No error. Just arbitrary results. I find this very strange.
[snip]
LSCopyItemInfoForURL((CFURLRef)[NSURL URLWithString:path],
kLSRequestAllFlags, &itemInfo);
Perhaps you should try this with [NSURL fileURLWithPath:path] instead
of +URLWithString:, that could be the reason it thinks you have
invalid parameters.
-- Axel
_______________________________________________
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