In Python we can get the list of all files within a zipfile without extracting the zip file using the below code.
import zipfile
zip_ref = zipfile.ZipFile(zipfilepath, 'r')
for file in zip_ref.namelist():
print file
Similarly is there a way to fetch the list of all directories and sub directories within the zipfile without extracting the zipfile?