GitHub

TarError

API reference for TarError.

A tar archive could not be encoded or decoded.

  • "InvalidHeader": a header has a bad checksum, a malformed field, or a value that cannot be written.
  • "Truncated": the input ended inside a header or an entry body.
  • "SizeMismatch": a body produced a byte count other than its size.
  • "Unsupported": the archive uses a feature this module does not read, such as GNU sparse files.
  • "BodyConsumed": a body was read after the decoder had moved past it.

Attributes

AttributeTypeDescription
kindTarErrorKind
messagestr

Functions

__init__

__init__(kind, message) -> None
ParameterTypeDescription
kindTarErrorKind
messagestr