On several occasions, say I have
a.zip, which unzips into
However, often there are zip files which spill all their contents into the current directory. This requires me to manually create a director
a and unzip into it.
But if as a policy I always create a directory, and the zip turns out to be of the first kind, my structure looks like
a/a/* which is not ideal.
Is there a way to unzip
a/* irrespective of its type among the two types which I described above?