title: How to get a list of directories in a zip?
body: <p>I am looking for a way to list the directories in a zip file in bash under Linux. I found out there is an application called <code>zipinfo</code>, which can list the paths in the zip (without any extra noise to have to parse through (<code>zipinfo -1 foo.zip</code>), as opposed to <code>unzip -l foo.zip</code>). However, this isn't good enough and I am wondering if there is a better way.</p>