/external/python/cpython3/Lib/ |
D | tarfile.py | 705 def __init__(self, tarfile, tarinfo): argument 706 fileobj = _FileInFile(tarfile.fileobj, tarinfo.offset_data, 707 tarinfo.size, tarinfo.sparse) 1447 tarinfo = TarInfo # The default TarInfo class to use. variable in TarFile 1452 tarinfo=None, dereference=None, ignore_zeros=None, encoding=None, argument 1489 if tarinfo is not None: 1490 self.tarinfo = tarinfo 1530 tarinfo = self.tarinfo.fromtarfile(self) 1531 self.members.append(tarinfo) 1542 buf = self.tarinfo.create_pax_global_header(self.pax_headers.copy()) [all …]
|
D | shutil.py | 904 def _set_uid_gid(tarinfo): argument 906 tarinfo.gid = gid 907 tarinfo.gname = group 909 tarinfo.uid = uid 910 tarinfo.uname = owner 911 return tarinfo
|
/external/python/cpython2/Lib/ |
D | tarfile.py | 799 def __init__(self, tarfile, tarinfo): argument 801 tarinfo.offset_data, 802 tarinfo.size, 803 getattr(tarinfo, "sparse", None)) 804 self.name = tarinfo.name 807 self.size = tarinfo.size 1509 tarinfo = TarInfo # The default TarInfo class to use. variable in TarFile 1514 tarinfo=None, dereference=None, ignore_zeros=None, encoding=None, argument 1549 if tarinfo is not None: 1550 self.tarinfo = tarinfo [all …]
|
D | shutil.py | 398 def _set_uid_gid(tarinfo): argument 400 tarinfo.gid = gid 401 tarinfo.gname = group 403 tarinfo.uid = uid 404 tarinfo.uname = owner 405 return tarinfo
|
/external/python/cpython2/Lib/test/ |
D | test_tarfile.py | 55 tarinfo = self.tar.getmember("ustar/regtype") 56 fobj = self.tar.extractfile(tarinfo) 58 self.assertTrue((len(data), md5sum(data)) == (tarinfo.size, md5_regtype), 63 tarinfo = self.tar.getmember("ustar/regtype") 67 fobj2 = self.tar.extractfile(tarinfo) 80 tarinfo = self.tar.getmember("ustar/regtype") 83 fobj2 = self.tar.extractfile(tarinfo) 93 tarinfo = self.tar.getmember("ustar/regtype") 94 fobj = self.tar.extractfile(tarinfo) 113 self.assertTrue(tarinfo.size == fobj.tell(), [all …]
|
/external/python/cpython3/Lib/test/ |
D | test_tarfile.py | 97 tarinfo = self.tar.getmember("ustar/regtype") 98 with self.tar.extractfile(tarinfo) as fobj: 100 self.assertEqual(len(data), tarinfo.size, 107 tarinfo = self.tar.getmember("ustar/regtype") 111 with self.tar.extractfile(tarinfo) as fobj: 125 tarinfo = self.tar.getmember("ustar/regtype") 128 with self.tar.extractfile(tarinfo) as fobj2: 138 tarinfo = self.tar.getmember("ustar/regtype") 139 with self.tar.extractfile(tarinfo) as fobj: 157 self.assertEqual(tarinfo.size, fobj.tell(), [all …]
|
/external/python/cpython2/Lib/distutils/ |
D | archive_util.py | 91 def _set_uid_gid(tarinfo): argument 93 tarinfo.gid = gid 94 tarinfo.gname = group 96 tarinfo.uid = uid 97 tarinfo.uname = owner 98 return tarinfo
|
/external/antlr/runtime/Python3/ |
D | ez_setup.py | 446 for tarinfo in members: 447 if tarinfo.isdir(): 449 directories.append(tarinfo) 450 tarinfo = copy.copy(tarinfo) 451 tarinfo.mode = 448 # decimal for oct 0700 452 self.extract(tarinfo, path) 464 for tarinfo in directories: 465 dirpath = os.path.join(path, tarinfo.name) 467 self.chown(tarinfo, dirpath) 468 self.utime(tarinfo, dirpath) [all …]
|
/external/python/cpython3/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
|
/external/python/cpython2/Doc/library/ |
D | tarfile.rst | 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: [all …]
|
/external/python/cpython3/Doc/library/ |
D | tarfile.rst | 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: [all …]
|
/external/python/cpython2/Lib/distutils/tests/ |
D | test_sdist.py | 494 filenames = [tarinfo.name for tarinfo in archive]
|
/external/python/cpython3/Lib/distutils/tests/ |
D | test_sdist.py | 434 filenames = [tarinfo.name for tarinfo in archive]
|
/external/python/cpython3/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
|