dtrx-py / dtrx

Do The Right Extraction
GNU General Public License v3.0
224 stars 10 forks source link

Cannot list contents of 7z archive #48

Closed prss-ad closed 4 months ago

prss-ad commented 1 year ago

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.