human
How can i list only the folders in zip archive in Python?
assistant
Here is some code to list folders in zip file 'file' that ends with '/'

[x for x in file.namelist() if x.endswith('/')]

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.