title: Command line zip everything within a directory, but do not include any directory as the root
body: <p>I can't find the answer to this for the life of me. Because I am packaging a zip in a specific way for a build process, I don't want to include a folder at all in the resulting zip at the root. For example, if I have this file path:</p>
  
  <pre><code>MyFolder/
      A.png
      B.txt
      C.mp3
  </code></pre>
  
  <p>And I use either the command:</p>
  
  <pre><code>zip -r -X "MyFolder.zip" MyFolder/*
  </code></pre>
  
  <p>or</p>
  
  <pre><code>cd MyFolder; zip -r -X "../MyFolder.zip" *
  </code></pre>
  
  <p>I end up with a zip file that has the root element of MyFolder. What I want is for when I unzip it is to dump all of it right into the directory, like this:</p>
  
  <pre><code>A.png
  B.txt
  C.mp3
  </code></pre>
  
  <p>In other words, I don't want MyFolder or any other folder as the root. I read through the whole manual and have tried numerous options and a lot of Google searching, and zip seems to just <em>really</em> want to have a folder at the root.</p>
  
  <p>Thanks!</p>