Skip to content

Do not automatically skip directory entries #69

Open
@bicobus

Description

@bicobus

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions