Skip to content

Commit

Permalink
Improve recursive sudirectories and files extraction.
Browse files Browse the repository at this point in the history
  • Loading branch information
nepiskopos authored Apr 21, 2024
1 parent bd6c861 commit 8e2d329
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py7zr/py7zr.py
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ def _extract(
self.worker.register_filelike(f.id, None)
continue
elif targets is not None and recursive == True:
if f.filename not in targets and not any([target in f.filename for target in targets]):
if f.filename not in targets and not any([f.filename.startswith(target) for target in targets]):
self.worker.register_filelike(f.id, None)
continue

Expand Down

0 comments on commit 8e2d329

Please sign in to comment.