• Home
  • Raw
  • Download

Lines Matching refs:TarInfo

193    Is raised by :meth:`TarInfo.frombuf` if the buffer it gets is invalid.
244 archive several times. Each archive member is represented by a :class:`TarInfo`
256 .. class:: TarFile(name=None, mode='r', fileobj=None, format=DEFAULT_FORMAT, tarinfo=TarInfo, deref…
282 The *tarinfo* argument can be used to replace the default :class:`TarInfo` class
324 Return a :class:`TarInfo` object for member *name*. If *name* can not be found
335 Return the members of the archive as a list of :class:`TarInfo` objects. The
354 Return the next member of the archive as a :class:`TarInfo` object, when
383 may be a filename or a :class:`TarInfo` object. You can specify a different
399 or a :class:`TarInfo` object. If *member* is a regular file, a file-like object
419 be a function that takes a :class:`TarInfo` object argument and returns the
420 changed :class:`TarInfo` object. If it instead returns :const:`None` the :class:`TarInfo`
439 Add the :class:`TarInfo` object *tarinfo* to the archive. If *fileobj* is given,
441 create :class:`TarInfo` objects directly, or by using :meth:`gettarinfo`.
450 Create a :class:`TarInfo` object from the result of :func:`os.stat` or
458 of the :class:`TarInfo`’s attributes before you add it using :meth:`addfile`.
460 beginning of the file, attributes such as :attr:`~TarInfo.size` may need
462 The :attr:`~TarInfo.name` may also be modified, in which case *arcname*
494 TarInfo Objects
497 A :class:`TarInfo` object represents one member in a :class:`TarFile`. Aside
502 :class:`TarInfo` objects are returned by :class:`TarFile`'s methods
506 .. class:: TarInfo(name="")
508 Create a :class:`TarInfo` object.
511 .. method:: TarInfo.frombuf(buf)
513 Create and return a :class:`TarInfo` object from string buffer *buf*.
519 .. method:: TarInfo.fromtarfile(tarfile)
522 a :class:`TarInfo` object.
527 .. method:: TarInfo.tobuf(format=DEFAULT_FORMAT, encoding=ENCODING, errors='strict')
529 Create a string buffer from a :class:`TarInfo` object. For information on the
535 A ``TarInfo`` object has the following public data attributes:
538 .. attribute:: TarInfo.name
543 .. attribute:: TarInfo.size
548 .. attribute:: TarInfo.mtime
553 .. attribute:: TarInfo.mode
558 .. attribute:: TarInfo.type
563 :const:`GNUTYPE_SPARSE`. To determine the type of a :class:`TarInfo` object
567 .. attribute:: TarInfo.linkname
569 Name of the target file name, which is only present in :class:`TarInfo` objects
573 .. attribute:: TarInfo.uid
578 .. attribute:: TarInfo.gid
583 .. attribute:: TarInfo.uname
588 .. attribute:: TarInfo.gname
593 .. attribute:: TarInfo.pax_headers
599 A :class:`TarInfo` object also provides some convenient query methods:
602 .. method:: TarInfo.isfile()
607 .. method:: TarInfo.isreg()
612 .. method:: TarInfo.isdir()
617 .. method:: TarInfo.issym()
622 .. method:: TarInfo.islnk()
627 .. method:: TarInfo.ischr()
632 .. method:: TarInfo.isblk()
637 .. method:: TarInfo.isfifo()
642 .. method:: TarInfo.isdev()