title: Java- Azure list Blob directory
body: <p>Im trying to grab a virtual directory in a container by iterating through a list of "folders" blobs.</p>
  
  <pre><code>folder(prefix) 
   |
   |--&gt;somefile.ext
  </code></pre>
  
  <p>I noticed that it will only grab that folder(blob) if there is a file within it.</p>
  
  <p>I need to be able to grab the virtual folder even if it has no files in it so I can upload to it.</p>
  
  <pre><code>folder(prefix) 
  
  
  for (ListBlobItem c : container.listBlobs("prefix")) {
  if (c.getUri().toString().endsWith("/")){
  //print blob
  }
  }
  </code></pre>