On this page
tarfile.FilterError
Prev: tarfile.ExtractError | Up: tarfile | Next: tarfile.fully_trusted_filter
Rel: tarfile.AbsoluteLinkError, tarfile.AbsolutePathError, tarfile.CompressionError, tarfile.data_filter
Ref: docs.python.org โ tarfile.FilterError
Tags: #public #python3 #stdlib #tarfile
Import
import tarfile
from tarfile import FilterError
Signature & Overview
tarfile.FilterError(...)
tarfile.FilterError class.
Methods & Attributes
FilterError.add_note(self, note, /)โ Add a note to the exceptionFilterError.with_traceback(self, tb, /)โ Set self.traceback to tb and return self.
Usage
import tarfile
assert issubclass(tarfile.FilterError, tarfile.TarError)
Gotchas
- Base class for Python 3.12+ extraction-filter rejections (
OutsideDestinationError,AbsolutePathError,LinkOutsideDestinationError,SpecialFileError).
REPL Inspect
from tarfile import FilterError
help(FilterError)
Linked from
Related notes
- tuts/python3/stdlib_module/tarfile/ExtractError Linked here; links to this page; shared tags: #stdlib, #tarfile
- tuts/python3/stdlib_module/tarfile/fully_trusted_filter Linked here; links to this page; shared tags: #stdlib, #tarfile
- tuts/python3/stdlib_module/tarfile/AbsoluteLinkError Linked here; shared tags: #stdlib, #tarfile
- tuts/python3/stdlib_module/tarfile/AbsolutePathError Linked here; shared tags: #stdlib, #tarfile
- tuts/python3/stdlib_module/tarfile/CompressionError Linked here; shared tags: #stdlib, #tarfile
- tuts/python3/stdlib_module/tarfile/data_filter Linked here; shared tags: #stdlib, #tarfile
- tuts/python3/stdlib_module/tarfile/TarFile Linked here; shared tags: #stdlib, #tarfile
- tuts/python3/stdlib_module/tarfile links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/tarfile/HeaderError shared tags: #stdlib, #tarfile
- tuts/python3/stdlib_module/tarfile/is_tarfile shared tags: #stdlib, #tarfile