Home
last modified time | relevance | path

Searched refs:zinfo (Results 1 – 8 of 8) sorted by relevance

/external/python/cpython2/Lib/
Dzipfile.py887 for zinfo in self.filelist:
888 date = "%d-%02d-%02d %02d:%02d:%02d" % zinfo.date_time[:6]
889 print "%-46s %s %12d" % (zinfo.filename, date, zinfo.file_size)
894 for zinfo in self.filelist:
898 with self.open(zinfo.filename, "r") as f:
902 return zinfo.filename
958 zinfo = name
961 zinfo = self.getinfo(name)
963 zef_file.seek(zinfo.header_offset, 0)
977 if fname != zinfo.orig_filename:
[all …]
Dtarfile.py2602 def writestr(self, zinfo, bytes): argument
2608 tinfo = TarInfo(zinfo.filename)
2610 tinfo.mtime = calendar.timegm(zinfo.date_time)
/external/chromium-trace/catapult/third_party/zipfile/
Dzipfile_2_7_13.py890 for zinfo in self.filelist:
891 date = "%d-%02d-%02d %02d:%02d:%02d" % zinfo.date_time[:6]
892 print "%-46s %s %12d" % (zinfo.filename, date, zinfo.file_size)
897 for zinfo in self.filelist:
901 with self.open(zinfo.filename, "r") as f:
905 return zinfo.filename
961 zinfo = name
964 zinfo = self.getinfo(name)
966 zef_file.seek(zinfo.header_offset, 0)
980 if fname != zinfo.orig_filename:
[all …]
/external/python/cpython3/Lib/
Dzipfile.py518 zinfo = cls(arcname, date_time)
519 zinfo.external_attr = (st.st_mode & 0xFFFF) << 16 # Unix attributes
521 zinfo.file_size = 0
522 zinfo.external_attr |= 0x10 # MS-DOS directory flag
524 zinfo.file_size = st.st_size
526 return zinfo
1072 def __init__(self, zf, zinfo, zip64): argument
1073 self._zinfo = zinfo
1076 self._compressor = _get_compressor(zinfo.compress_type,
1077 zinfo._compresslevel)
[all …]
/external/python/cpython3/Lib/test/
Dtest_zipimport.py116 zinfo = ZipInfo(name, time.localtime(mtime))
117 zinfo.compress_type = self.compression
118 z.writestr(zinfo, data)
425 zinfo = ZipInfo(name, time.localtime(mtime))
426 zinfo.compress_type = self.compression
427 zinfo.comment = b"spam"
428 z.writestr(zinfo, data)
483 zinfo = ZipInfo(name, time.localtime(mtime))
484 zinfo.compress_type = self.compression
485 zinfo.comment = b"eggs"
[all …]
Dtest_zipfile.py422 zinfo = zipfp.getinfo('strfile')
423 self.assertEqual(zinfo.external_attr, 0o600 << 16)
759 zinfo = zipfp.getinfo("strfile")
760 extra = zinfo.extra
764 zinfo = zipfp.getinfo("strfile")
765 self.assertEqual(zinfo.extra, extra)
1170 zinfo = zipfile.ZipInfo()
1172 zinfo.filename = arcname
1173 zinfo.external_attr = 0o600 << 16
1174 zipfp.writestr(zinfo, content)
[all …]
/external/python/cpython2/Lib/test/
Dtest_zipimport.py73 zinfo = ZipInfo(name, time.localtime(mtime))
74 zinfo.compress_type = self.compression
75 z.writestr(zinfo, data)
211 zinfo = ZipInfo(name, time.localtime(mtime))
212 zinfo.compress_type = self.compression
213 z.writestr(zinfo, data)
255 zinfo = ZipInfo(name, time.localtime(mtime))
256 zinfo.compress_type = self.compression
257 z.writestr(zinfo, data)
Dtest_zipfile.py548 zinfo = zipfile.ZipInfo()
550 zinfo.filename = arcname
551 zinfo.external_attr = 0o600 << 16
552 zipfp.writestr(zinfo, content)
606 zinfo = zipfp.getinfo('strfile')
607 self.assertEqual(zinfo.external_attr, 0600 << 16)
1595 zinfo = zipf.filelist[0]
1596 self.assertTrue(zinfo.filename.endswith("/x/"))
1597 self.assertEqual(zinfo.external_attr, (mode << 16) | 0x10)
1599 zinfo = zipf.filelist[1]
[all …]