Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not automatically skip directory entries #69

Open
bicobus opened this issue Aug 2, 2019 · 0 comments
Open

Do not automatically skip directory entries #69

bicobus opened this issue Aug 2, 2019 · 0 comments

Comments

@bicobus
Copy link

bicobus commented Aug 2, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant