title: How to check for an exploding zip file in bash?
body: <p>I have a bash shell script that unzips a zip file, and manipulates the resulting files. Because of the process, I expect all the content I am interested to be within a single folder like so:</p>
  
  <pre><code>file.zip  
    /file  
      /contentFolder1
      /contentFolder2
      stuff1.txt
      stuff2.txt
      ...
  </code></pre>
  
  <p>I've noticed users on Windows typically don't create a sub folder but instead submit an exploding zip file that looks like:</p>
  
  <pre><code>file.zip  
      /contentFolder1
      /contentFolder2
      stuff1.txt
      stuff2.txt
      ...
  </code></pre>
  
  <p>How can I detect these exploding zips, so that I may handle them accordingly? Is it possible without unzipping the file first?</p>