Searched refs:tarinfo (Results 1 – 7 of 7) sorted by relevance
/third_party/python/Lib/ |
D | tarfile.py | 706 def __init__(self, tarfile, tarinfo): argument 707 fileobj = _FileInFile(tarfile.fileobj, tarinfo.offset_data, 708 tarinfo.size, tarinfo.sparse) 1448 tarinfo = TarInfo # The default TarInfo class to use. variable in TarFile 1453 tarinfo=None, dereference=None, ignore_zeros=None, encoding=None, argument 1490 if tarinfo is not None: 1491 self.tarinfo = tarinfo 1531 tarinfo = self.tarinfo.fromtarfile(self) 1532 self.members.append(tarinfo) 1543 buf = self.tarinfo.create_pax_global_header(self.pax_headers.copy()) [all …]
|
D | shutil.py | 926 def _set_uid_gid(tarinfo): argument 928 tarinfo.gid = gid 929 tarinfo.gname = group 931 tarinfo.uid = uid 932 tarinfo.uname = owner 933 return tarinfo
|
/third_party/python/Lib/test/ |
D | test_tarfile.py | 102 tarinfo = self.tar.getmember("ustar/regtype") 103 with self.tar.extractfile(tarinfo) as fobj: 105 self.assertEqual(len(data), tarinfo.size, 112 tarinfo = self.tar.getmember("ustar/regtype") 116 with self.tar.extractfile(tarinfo) as fobj: 130 tarinfo = self.tar.getmember("ustar/regtype") 133 with self.tar.extractfile(tarinfo) as fobj2: 143 tarinfo = self.tar.getmember("ustar/regtype") 144 with self.tar.extractfile(tarinfo) as fobj: 162 self.assertEqual(tarinfo.size, fobj.tell(), [all …]
|
/third_party/python/Lib/distutils/ |
D | archive_util.py | 97 def _set_uid_gid(tarinfo): argument 99 tarinfo.gid = gid 100 tarinfo.gname = group 102 tarinfo.uid = uid 103 tarinfo.uname = owner 104 return tarinfo
|
/third_party/python/Doc/library/ |
D | tarfile.rst | 268 object, see :ref:`tarinfo-objects` for details. 279 .. class:: TarFile(name=None, mode='r', fileobj=None, format=DEFAULT_FORMAT, tarinfo=TarInfo, deref… 305 The *tarinfo* argument can be used to replace the default :class:`TarInfo` class 481 .. method:: TarFile.addfile(tarinfo, fileobj=None) 483 Add the :class:`TarInfo` object *tarinfo* to the archive. If *fileobj* is given, 485 ``tarinfo.size`` bytes are read from it and added to the archive. You can 767 for tarinfo in members: 768 if os.path.splitext(tarinfo.name)[1] == ".py": 769 yield tarinfo 794 for tarinfo in tar: [all …]
|
/third_party/python/Lib/distutils/tests/ |
D | test_sdist.py | 435 filenames = [tarinfo.name for tarinfo in archive]
|
/third_party/python/Doc/whatsnew/ |
D | 3.2.rst | 1451 >>> def myfilter(tarinfo): 1452 ... if tarinfo.isfile(): # only save real files 1453 ... tarinfo.uname = 'monty' # redact the user name 1454 ... return tarinfo
|