On this page
tarfile.OutsideDestinationError
Prev: tarfile.open | Up: tarfile | Next: tarfile.ReadError
Rel: tarfile.AbsoluteLinkError, tarfile.AbsolutePathError, tarfile.CompressionError, tarfile.data_filter
Ref: docs.python.org โ tarfile.OutsideDestinationError
Tags: #public #python3 #stdlib #tarfile
Import
import tarfile
from tarfile import OutsideDestinationError
Signature & Overview
tarfile.OutsideDestinationError(tarinfo, path)
tarfile.OutsideDestinationError class.
Methods & Attributes
OutsideDestinationError.add_note(self, note, /)โ Add a note to the exceptionOutsideDestinationError.with_traceback(self, tb, /)โ Set self.traceback to tb and return self.
Usage
import tarfile
assert issubclass(tarfile.OutsideDestinationError, tarfile.FilterError)
Gotchas
- Python 3.12+ Zip-Slip guard: Raised when a member path contains
..segments escaping the extraction root.
REPL Inspect
from tarfile import OutsideDestinationError
help(OutsideDestinationError)
Linked from
Related notes
- tuts/python3/stdlib_module/tarfile/open Linked here; links to this page; shared tags: #stdlib, #tarfile
- tuts/python3/stdlib_module/tarfile/ReadError 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/ExtractError shared tags: #stdlib, #tarfile
- tuts/python3/stdlib_module/tarfile/FilterError shared tags: #stdlib, #tarfile