Re: NSDirectoryEnumerator and URLs (PS) [resolved]
Re: NSDirectoryEnumerator and URLs (PS) [resolved]
- Subject: Re: NSDirectoryEnumerator and URLs (PS) [resolved]
- From: Jamie Hardt <email@hidden>
- Date: Wed, 13 Jan 2010 14:52:37 -0800
Yeah that works, I had an assertion failing in there somewhere…
Now I have to go pester the sqlite-users list. Yick.
Jamie
On Jan 13, 2010, at 1:38 PM, Robert Martin wrote:
> Assuming that the original path is valid, this looks ok to me - maybe you might try commenting out the lines:
>
>> BOOL isDir = NO;
>> if ( [fm fileExistsAtPath:fullPath isDirectory:&isDir] && !isDir ) {
>> NSDictionary *metadataDict = [engine metadataDictionaryForFile:fullPath ];
>> [database indexMetadata:metadataDict forFileAtPath:fullPath];
>> }
>
> and just have the app log the fullPath at that point - it should work.
>
> Perhaps also checking the folderPath that's passed in to make sure it's a directory?
_______________________________________________
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