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