Lines Matching refs:tarinfo
265 object, see :ref:`tarinfo-objects` for details.
276 .. class:: TarFile(name=None, mode='r', fileobj=None, format=DEFAULT_FORMAT, tarinfo=TarInfo, deref…
302 The *tarinfo* argument can be used to replace the default :class:`TarInfo` class
478 .. method:: TarFile.addfile(tarinfo, fileobj=None)
480 Add the :class:`TarInfo` object *tarinfo* to the archive. If *fileobj* is given,
482 ``tarinfo.size`` bytes are read from it and added to the archive. You can
764 for tarinfo in members:
765 if os.path.splitext(tarinfo.name)[1] == ".py":
766 yield tarinfo
791 for tarinfo in tar:
792 print(tarinfo.name, "is", tarinfo.size, "bytes in size and is ", end="")
793 if tarinfo.isreg():
795 elif tarinfo.isdir():
805 def reset(tarinfo):
806 tarinfo.uid = tarinfo.gid = 0
807 tarinfo.uname = tarinfo.gname = "root"
808 return tarinfo