title: Zip File with Python Shutil like File Explorer
body: <h2>Background</h2>
  
  <p>I am trying to zip a directory with python shutil like this:</p>
  
  <pre><code>shutil.make_archive("~/Desktop/zipfile", 'zip', "~/Documents/foldertozip")
  </code></pre>
  
  <p>but the result only zips the files <em>inside</em> "foldertozip". So for instance,</p>
  
  <pre><code>foldertozip
      -- file1
      -- file2
  zipfile.zip
      -- file1
      -- file2
  </code></pre>
  
  <p>On the other hand, if I zip it from windows file explorer or mac finder, I get the following:</p>
  
  <pre><code>foldertozip
      -- file1
      -- file2
  zipfile.zip
      -- foldertozip
          -- file1
          -- file2
  </code></pre>
  
  <h2>Question</h2>
  
  <p>How can I use shutil to do the same thing that I could do from a file explorer and include the base directory? I know I could copy "foldertozip" to a folder with the same name and then zip that folder, but I would prefer a cleaner solution if at all possible.</p>