fancycode / pylzma

Python bindings for the LZMA library

Home Page:http://www.joachim-bauch.de/projects/pylzma/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Do not automatically skip directory entries

bicobus opened this issue · comments

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

# Skip all directory entries.
attributes = info.get('attributes', None)
if attributes and attributes & FILE_ATTRIBUTE_DIRECTORY != 0:
continue