Home
last modified time | relevance | path

Searched refs:arcname (Results 1 – 23 of 23) sorted by relevance

/external/chromium-trace/catapult/third_party/zipfile/
Dzipfile_2_7_13.py1051 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/
Dzipfile.py1048 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 …]
Dtarfile.py1848 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/
Dzipfile.py495 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 …]
Dzipapp.py140 arcname = child.relative_to(source)
141 if filter is None or filter(arcname):
142 z.write(child, arcname.as_posix())
Dtarfile.py1773 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/
Dbdist_wininst.py186 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/
Dbdist_wininst.py176 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/
Dpackage.py344 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/
Duntgz.c132 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/
Dpgo.py44 tar.add(self._source_dir, arcname='chrome', recursive=True)
/external/avb/test/
Dat_auth_unlock_unittest.py45 for arcname in contents:
46 zip.write(contents[arcname], arcname)
/external/autotest/client/bin/result_tools/
Dzip_file_throttler.py52 tar.add(file_info.path, arcname=os.path.basename(file_info.path))
/external/python/cpython2/Lib/test/
Dtest_zipfile.py545 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)
Dtest_tarfile.py933 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/
Dzipfile.rst370 .. 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
Dtarfile.rst448 .. 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/
Dtest_zipfile.py1167 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)
Dtest_tarfile.py1245 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/
Dzipfile.rst280 .. 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
Dtarfile.rst410 .. 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/
Dmake_release.py360 archive.add(dstBasePath, arcname=releaseName)
/external/autotest/site_utils/
Dgs_offloader.py347 tar.add(dirpath, arcname=os.path.basename(dirpath))