title: AzureStorage CloudFileDirectory.ListFilesAndDirectories worthless?
body: <p>So far I get a handle on my <code>CloudFileDirectory</code> and calling this method gives me a list of  <code>IListFileItem</code> objects, 1 for each file and directory in the given <code>CloudFileDirectory</code>, but I'm having trouble distinguishing which are <em>files</em> and which are <em>directories</em>. </p>
  
  <p>Properties available on the <code>IListFileItem</code> include <code>Uri</code>, which is a <code>System.Uri</code> object, which has an <code>isFile</code> member, but this shows as <em>false</em> for my files <strong>and</strong> my directories.</p>
  
  <p>I need to get lists of directories which I can drill into, lists of files I can work with, but so far I can't find a way to filter this mixed up list.</p>
  
  <p>I can't think of a worthwhile use for a mixed list. I wonder why M$ didn't expose <code>ListFiles</code> and <code>ListDirectories</code> as separate methods. Maybe they had trouble distinguishing them and gave up.</p>