title: Creating Directories in a ZipArchive C# .Net 4.5
body: <p>A ZipArchive is a collection of ZipArchiveEntries, and adding/removing "Entries" works nicely.
  But it appears there is no notion of directories / nested "Archives". In theory, the class is decoupled from a file system, in that you can create the archive completely in a memory stream. But if you wish to add a directory structure within the archive, you must prefix the entry name with a path. </p>
  
  <p><strong>Question:</strong> How would you go about extending ZipArchive to create a better interface for creating and managing directories?</p>
  
  <p>For example, the current method of adding a file to a directory is to create the entry with the directory path:</p>
  
  <pre><code>var entry = _archive.CreateEntry("directory/entryname");
  </code></pre>
  
  <p>whereas something along these lines seems nicer to me: </p>
  
  <pre><code>var directory = _archive.CreateDirectoryEntry("directory");
  var entry = _directory.CreateEntry("entryname");
  </code></pre>