/external/chromium-trace/catapult/third_party/zipfile/ |
D | zipfile_2_7_13.py | 1051 arcname = member.filename.replace('/', os.path.sep) 1054 arcname = arcname.replace(os.path.altsep, os.path.sep) 1057 arcname = os.path.splitdrive(arcname)[1] 1058 arcname = os.path.sep.join(x for x in arcname.split(os.path.sep) 1063 if isinstance(arcname, unicode): 1067 arcname = arcname.translate(table) 1069 arcname = (x.rstrip('.') for x in arcname.split(os.path.sep)) 1070 arcname = os.path.sep.join(x for x in arcname if x) 1072 targetpath = os.path.join(targetpath, arcname) 1119 def write(self, filename, arcname=None, compress_type=None): argument [all …]
|
/external/python/cpython2/Lib/ |
D | zipfile.py | 1048 arcname = member.filename.replace('/', os.path.sep) 1051 arcname = arcname.replace(os.path.altsep, os.path.sep) 1054 arcname = os.path.splitdrive(arcname)[1] 1055 arcname = os.path.sep.join(x for x in arcname.split(os.path.sep) 1060 if isinstance(arcname, unicode): 1064 arcname = arcname.translate(table) 1066 arcname = (x.rstrip('.') for x in arcname.split(os.path.sep)) 1067 arcname = os.path.sep.join(x for x in arcname if x) 1069 targetpath = os.path.join(targetpath, arcname) 1116 def write(self, filename, arcname=None, compress_type=None): argument [all …]
|
D | tarfile.py | 1848 def gettarinfo(self, name=None, arcname=None, fileobj=None): argument 1866 if arcname is None: 1867 arcname = name 1868 drv, arcname = os.path.splitdrive(arcname) 1869 arcname = arcname.replace(os.sep, "/") 1870 arcname = arcname.lstrip("/") 1892 inode in self.inodes and arcname != self.inodes[inode]: 1902 self.inodes[inode] = arcname 1919 tarinfo.name = arcname 1976 def add(self, name, arcname=None, recursive=True, exclude=None, filter=None): argument [all …]
|
/external/python/cpython3/Lib/ |
D | zipfile.py | 495 def from_file(cls, filename, arcname=None): argument 511 if arcname is None: 512 arcname = filename 513 arcname = os.path.normpath(os.path.splitdrive(arcname)[1]) 514 while arcname[0] in (os.sep, os.altsep): 515 arcname = arcname[1:] 517 arcname += '/' 518 zinfo = cls(arcname, date_time) 1619 def _sanitize_windows_name(cls, arcname, pathsep): argument 1626 arcname = arcname.translate(table) [all …]
|
D | zipapp.py | 140 arcname = child.relative_to(source) 141 if filter is None or filter(arcname): 142 z.write(child, arcname.as_posix())
|
D | tarfile.py | 1773 def gettarinfo(self, name=None, arcname=None, fileobj=None): argument 1792 if arcname is None: 1793 arcname = name 1794 drv, arcname = os.path.splitdrive(arcname) 1795 arcname = arcname.replace(os.sep, "/") 1796 arcname = arcname.lstrip("/") 1818 inode in self.inodes and arcname != self.inodes[inode]: 1828 self.inodes[inode] = arcname 1845 tarinfo.name = arcname 1905 def add(self, name, arcname=None, recursive=True, *, filter=None): argument [all …]
|
/external/python/cpython2/Lib/distutils/command/ |
D | bdist_wininst.py | 186 arcname = self.make_archive(archive_basename, "zip", 189 self.create_exe(arcname, fullname, self.bitmap) 197 log.debug("removing temporary file '%s'", arcname) 198 os.remove(arcname) 254 def create_exe (self, arcname, fullname, bitmap=None): argument 305 file.write(open(arcname, "rb").read())
|
/external/python/cpython3/Lib/distutils/command/ |
D | bdist_wininst.py | 176 arcname = self.make_archive(archive_basename, "zip", 179 self.create_exe(arcname, fullname, self.bitmap) 187 log.debug("removing temporary file '%s'", arcname) 188 os.remove(arcname) 239 def create_exe(self, arcname, fullname, bitmap=None): argument 290 file.write(open(arcname, "rb").read())
|
/external/v8/tools/clang/scripts/ |
D | package.py | 344 tar.add(os.path.join(pdir, entry), arcname=entry, filter=PrintTarProgress) 356 tar.add(os.path.join(code_coverage_dir, 'bin'), arcname='bin', 376 tar.add(os.path.join(objdumpdir, 'bin'), arcname='bin', 378 tar.add(llvmobjdump_stamp_file, arcname=llvmobjdump_stamp_file_base, 390 tar.add(os.path.join(cfiverifydir, 'bin'), arcname='bin', 407 tar.add(os.path.join(safestackdir, 'lib'), arcname='lib', 421 tar.add(os.path.join(llddir, 'bin'), arcname='bin', 433 tar.add(os.path.join(translation_unit_dir, 'bin'), arcname='bin',
|
/external/zlib/src/contrib/untgz/ |
D | untgz.c | 132 char *TGZfname (const char *arcname) in TGZfname() argument 137 strcpy(buffer,arcname); in TGZfname() 152 void TGZnotfound (const char *arcname) in TGZnotfound() argument 159 arcname, in TGZnotfound()
|
/external/autotest/client/profilers/pgo/ |
D | pgo.py | 44 tar.add(self._source_dir, arcname='chrome', recursive=True)
|
/external/avb/test/ |
D | at_auth_unlock_unittest.py | 45 for arcname in contents: 46 zip.write(contents[arcname], arcname)
|
/external/autotest/client/bin/result_tools/ |
D | zip_file_throttler.py | 52 tar.add(file_info.path, arcname=os.path.basename(file_info.path))
|
/external/python/cpython2/Lib/test/ |
D | test_zipfile.py | 545 for arcname, fixedname in hacknames: 546 content = b'foobar' + arcname.encode() 550 zinfo.filename = arcname 554 arcname = arcname.replace(os.sep, "/") 559 writtenfile = zipfp.extract(arcname, targetpath) 561 msg="extract %r" % arcname) 573 writtenfile = zipfp.extract(arcname) 575 msg="extract %r" % arcname)
|
D | test_tarfile.py | 933 tar.add(tempdir, arcname="empty_dir", exclude=exclude) 963 tar.add(tempdir, arcname="empty_dir", filter=filter) 993 tar.add(foo, arcname=path) 1063 tar.add(source_file, arcname=os.path.basename(source_file)) 1064 tar.add(target_file, arcname=os.path.basename(target_file)) 1093 tar.add(target_file, arcname=os.path.basename(target_file)) 1123 tar.add(source_file, arcname=os.path.basename(source_file)) 1124 tar.add(target_file, arcname=os.path.basename(target_file))
|
/external/python/cpython3/Doc/library/ |
D | zipfile.rst | 370 .. method:: ZipFile.write(filename, arcname=None, compress_type=None, \ 374 *arcname* (by default, this will be the same as *filename*, but without a drive 388 If ``arcname`` (or ``filename``, if ``arcname`` is not given) contains a null 538 .. classmethod:: ZipInfo.from_file(filename, arcname=None) 545 If *arcname* is specified, it is used as the name within the archive. 546 If *arcname* is not specified, the name will be the same as *filename*, but
|
D | tarfile.rst | 448 .. method:: TarFile.add(name, arcname=None, recursive=True, *, filter=None) 451 (directory, fifo, symbolic link, etc.). If given, *arcname* specifies an 476 .. method:: TarFile.gettarinfo(name=None, arcname=None, fileobj=None) 482 given, *arcname* specifies an alternative name for the file in the 492 The :attr:`~TarInfo.name` may also be modified, in which case *arcname*
|
/external/python/cpython3/Lib/test/ |
D | test_zipfile.py | 1167 for arcname, fixedname in hacknames: 1168 content = b'foobar' + arcname.encode() 1172 zinfo.filename = arcname 1176 arcname = arcname.replace(os.sep, "/") 1181 writtenfile = zipfp.extract(arcname, targetpath) 1184 (arcname, writtenfile, correctfile)) 1196 writtenfile = zipfp.extract(arcname) 1198 msg="extract %r" % arcname)
|
D | test_tarfile.py | 1245 tar.add(tempdir, arcname="empty_dir", filter=filter) 1279 tar.add(foo, arcname=path) 2211 tf.add(tardata, arcname=os.path.basename(tardata))
|
/external/python/cpython2/Doc/library/ |
D | zipfile.rst | 280 .. method:: ZipFile.write(filename[, arcname[, compress_type]]) 283 *arcname* (by default, this will be the same as *filename*, but without a drive 305 If ``arcname`` (or ``filename``, if ``arcname`` is not given) contains a null
|
D | tarfile.rst | 410 .. method:: TarFile.add(name, arcname=None, recursive=True, exclude=None, filter=None) 413 fifo, symbolic link, etc.). If given, *arcname* specifies an alternative name 448 .. method:: TarFile.gettarinfo(name=None, arcname=None, fileobj=None) 453 given, *arcname* specifies an alternative name for the file in the 462 The :attr:`~TarInfo.name` may also be modified, in which case *arcname*
|
/external/deqp/scripts/ |
D | make_release.py | 360 archive.add(dstBasePath, arcname=releaseName)
|
/external/autotest/site_utils/ |
D | gs_offloader.py | 347 tar.add(dirpath, arcname=os.path.basename(dirpath))
|