• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSDirectoryEnumerator and URLs (PS) [resolved]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >NSDirectoryEnumerator and URLs (From: Jamie Hardt <email@hidden>)
 >Re: NSDirectoryEnumerator and URLs (PS) (From: Jamie Hardt <email@hidden>)

  • Prev by Date: Re: NSArrayControllers not repopulating after NSPersistentDocument load
  • Next by Date: Re: Best practice example for a setup wizard?
  • Previous by thread: Re: NSDirectoryEnumerator and URLs (PS)
  • Next by thread: Re: NSDirectoryEnumerator and URLs
  • Index(es):
    • Date
    • Thread