RKrahl / archive-tools

Tools for managing archives
Apache License 2.0
1 stars 2 forks source link

Add a custom extraction filter #79

Open RKrahl opened 10 months ago

RKrahl commented 10 months ago

Python 3.12 raises a warning:

DeprecationWarning: Python 3.14 will, by default, filter extracted tar archives and reject files or modify their metadata. Use the filter argument to control this behavior.

Background are tarfile extraction filters introduced with Python 3.12.

RKrahl commented 9 months ago

Should implement a custom extraction filter that refuses to extract certain items: