title: Directories under a path in Objective-C
body: <p>I'm using UKKQueue to keep an eye on changes to files in a directory. But sometimes there are more directories below the main one and it will not pick up changes to files made in those folders. Therefore I would like to also register those paths to be watched. I can't however get a folder list easily. I can get a list of EVERYTHING using...</p>
  
  <pre><code>[[NSFileManager defaultManager] subpathsOfDirectoryAtPath:@"/Users/rob5408/Documents" error:&amp;error];
  </code></pre>
  
  <p>...but how can I sift this further to get just directories? I looked at...</p>
  
  <pre><code>- (BOOL)fileExistsAtPath:(NSString *)path isDirectory:(BOOL *)isDirectory;
  </code></pre>
  
  <p>...but it seems tedious and the boolean pointer really threw me off. Any ideas?</p>