/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 | 490 def from_file(cls, filename, arcname=None, *, strict_timestamps=True): argument 510 if arcname is None: 511 arcname = filename 512 arcname = os.path.normpath(os.path.splitdrive(arcname)[1]) 513 while arcname[0] in (os.sep, os.altsep): 514 arcname = arcname[1:] 516 arcname += '/' 517 zinfo = cls(arcname, date_time) 1636 def _sanitize_windows_name(cls, arcname, pathsep): argument 1643 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 | 1809 def gettarinfo(self, name=None, arcname=None, fileobj=None): argument 1828 if arcname is None: 1829 arcname = name 1830 drv, arcname = os.path.splitdrive(arcname) 1831 arcname = arcname.replace(os.sep, "/") 1832 arcname = arcname.lstrip("/") 1853 inode in self.inodes and arcname != self.inodes[inode]: 1863 self.inodes[inode] = arcname 1880 tarinfo.name = arcname 1940 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 | 187 arcname = self.make_archive(archive_basename, "zip", 190 self.create_exe(arcname, fullname, self.bitmap) 198 log.debug("removing temporary file '%s'", arcname) 199 os.remove(arcname) 250 def create_exe(self, arcname, fullname, bitmap=None): argument 302 with open(arcname, "rb") as f:
|
/external/openscreen/testing/libfuzzer/ |
D | archive_corpus.py | 48 arcname = '%016d' % i 49 z.write(corpus_file, arcname)
|
/external/rust/crates/libz-sys/src/zlib/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 | 56 tar.add(file_info.path, arcname=os.path.basename(file_info.path))
|
/external/llvm-project/libcxx/utils/ |
D | ssh.py | 77 tarball.add(args.execdir, arcname=os.path.basename(args.execdir))
|
/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/kokoro/ |
D | build.py | 146 tar.add(os.path.join(out_dir, 'config.log'), arcname='config.log')
|
/external/llvm-project/llvm/utils/ |
D | remote-exec.py | 94 tarball.add(args.execdir, arcname=os.path.basename(args.execdir))
|
/external/python/cpython3/Doc/library/ |
D | zipfile.rst | 388 .. method:: ZipFile.write(filename, arcname=None, compress_type=None, \ 392 *arcname* (by default, this will be the same as *filename*, but without a drive 406 If ``arcname`` (or ``filename``, if ``arcname`` is not given) contains a null 624 .. classmethod:: ZipInfo.from_file(filename, arcname=None, *, \ 632 If *arcname* is specified, it is used as the name within the archive. 633 If *arcname* is not specified, the name will be the same as *filename*, but
|
D | tarfile.rst | 458 .. method:: TarFile.add(name, arcname=None, recursive=True, *, filter=None) 461 (directory, fifo, symbolic link, etc.). If given, *arcname* specifies an 486 .. method:: TarFile.gettarinfo(name=None, arcname=None, fileobj=None) 492 given, *arcname* specifies an alternative name for the file in the 502 The :attr:`~TarInfo.name` may also be modified, in which case *arcname*
|
/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/python/cpython3/Lib/test/ |
D | test_zipfile.py | 1478 for arcname, fixedname in hacknames: 1479 content = b'foobar' + arcname.encode() 1483 zinfo.filename = arcname 1487 arcname = arcname.replace(os.sep, "/") 1492 writtenfile = zipfp.extract(arcname, targetpath) 1495 (arcname, writtenfile, correctfile)) 1507 writtenfile = zipfp.extract(arcname) 1509 msg="extract %r" % arcname)
|
D | test_tarfile.py | 1284 tar.add(tempdir, arcname="empty_dir", filter=filter) 1318 tar.add(foo, arcname=path) 1349 tar.add(source_file, arcname="source") 1350 tar.add(target_file, arcname="symlink") 2306 tf.add(tardata, arcname=os.path.basename(tardata))
|
/external/deqp/scripts/ |
D | make_release.py | 360 archive.add(dstBasePath, arcname=releaseName)
|
/external/autotest/site_utils/ |
D | gs_offloader.py | 369 tar.add(dirpath, arcname=os.path.basename(dirpath))
|