Directories might be empty and required by whatever is contained in the archive, as such skipping them from being included in the list of files shouldn't be a default behavior.
More over, the __init__ of Archive7z is so large that extending the class to circumvent that behavior is practically not possible.
Relevant code:
|
# Skip all directory entries. |
|
attributes = info.get('attributes', None) |
|
if attributes and attributes & FILE_ATTRIBUTE_DIRECTORY != 0: |
|
continue |
Directories might be empty and required by whatever is contained in the archive, as such skipping them from being included in the list of files shouldn't be a default behavior.
More over, the
__init__of Archive7z is so large that extending the class to circumvent that behavior is practically not possible.Relevant code:
pylzma/py7zlib.py
Lines 983 to 986 in ccb0e7c