Skip to content

Cannot list contents of 7z archive #48

@prss-ad

Description

@prss-ad

Hi ,
I really love having one tool to deal with so many archive formats. Thanks.

Unfortunately, i' m getting this error when trying to list archive content with this command:
dtrx -l archive.7z .

I already had experienced this error a few year ago. Since then i have tried many times with different python versions
over multiple system installs.

Maybe it's related to the 7z output when listing.

File "/home/user/.pyenv/versions/3.11.2/lib/python3.11/site-packages/dtrx/dtrx.py", line 716, in get_filenames
    fn_index = string.rindex(line, " ") + 1
               ^^^^^^^^^^^^^
AttributeError: module 'string' has no attribute 'rindex'

Again thanks for the good work.
Have a nice day.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions