Home
last modified time | relevance | path

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

/external/python/cpython2/Lib/
Dzipfile.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 …]
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/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/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/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/v8/tools/clang/scripts/
Dpackage.py278 tar.add(os.path.join(pdir, entry), arcname=entry, filter=PrintTarProgress)
289 tar.add(os.path.join(golddir, 'lib'), arcname='lib',
300 tar.add(os.path.join(objdumpdir, 'bin'), arcname='bin',
/external/autotest/client/profilers/pgo/
Dpgo.py44 tar.add(self._source_dir, arcname='chrome', recursive=True)
/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/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.py358 archive.add(dstBasePath, arcname=releaseName)
/external/autotest/site_utils/
Dgs_offloader.py352 tar.add(dirpath, arcname=os.path.basename(dirpath))