Lines Matching refs:TarFile
43 Return a :class:`TarFile` object for the pathname *name*. For detailed
44 information on :class:`TarFile` objects and the keyword arguments that are
86 ``'filemode|[compression]'``. :func:`tarfile.open` will return a :class:`TarFile`
92 device. However, such a :class:`TarFile` object is limited in that it does
121 .. class:: TarFile
173 Is raised for the limitations that are typical for stream-like :class:`TarFile`
179 Is raised for *non-fatal* errors when using :meth:`TarFile.extract`, but only if
180 :attr:`TarFile.errorlevel`\ ``== 2``.
238 TarFile Objects
241 The :class:`TarFile` object provides an interface to a tar archive. A tar
247 A :class:`TarFile` object can be used as a context manager in a :keyword:`with`
256 .. class:: TarFile(name=None, mode='r', fileobj=None, format=DEFAULT_FORMAT, tarinfo=TarInfo, deref…
274 *fileobj* is not closed, when :class:`TarFile` is closed.
298 If *errorlevel* is ``0``, all errors are ignored when using :meth:`TarFile.extract`.
316 .. classmethod:: TarFile.open(...)
322 .. method:: TarFile.getmember(name)
333 .. method:: TarFile.getmembers()
339 .. method:: TarFile.getnames()
345 .. method:: TarFile.list(verbose=True)
352 .. method:: TarFile.next()
355 :class:`TarFile` is opened for reading. Return :const:`None` if there is no more
359 .. method:: TarFile.extractall(path=".", members=None)
379 .. method:: TarFile.extract(member, path="")
396 .. method:: TarFile.extractfile(member)
410 .. method:: TarFile.add(name, arcname=None, recursive=True, exclude=None, filter=None)
437 .. method:: TarFile.addfile(tarinfo, fileobj=None)
448 .. method:: TarFile.gettarinfo(name=None, arcname=None, fileobj=None)
466 .. method:: TarFile.close()
468 Close the :class:`TarFile`. In write mode, two finishing zero blocks are
472 .. attribute:: TarFile.posix
485 .. attribute:: TarFile.pax_headers
497 A :class:`TarInfo` object represents one member in a :class:`TarFile`. Aside
502 :class:`TarInfo` objects are returned by :class:`TarFile`'s methods
521 Read the next member from the :class:`TarFile` object *tarfile* and return it as
530 arguments see the constructor of the :class:`TarFile` class.
659 How to extract a subset of a tar archive with :meth:`TarFile.extractall` using
704 parameter in :meth:`TarFile.add`::
776 keyword arguments of the :class:`TarFile` class.