Lines Matching refs:tarinfo
245 object, see :ref:`tarinfo-objects` for details.
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
437 .. method:: TarFile.addfile(tarinfo, fileobj=None)
439 Add the :class:`TarInfo` object *tarinfo* to the archive. If *fileobj* is given,
440 ``tarinfo.size`` bytes are read from it and added to the archive. You can
666 for tarinfo in members:
667 if os.path.splitext(tarinfo.name)[1] == ".py":
668 yield tarinfo
693 for tarinfo in tar:
694 print tarinfo.name, "is", tarinfo.size, "bytes in size and is",
695 if tarinfo.isreg():
697 elif tarinfo.isdir():
707 def reset(tarinfo):
708 tarinfo.uid = tarinfo.gid = 0
709 tarinfo.uname = tarinfo.gname = "root"
710 return tarinfo