Lines Matching refs:zinfo
422 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)
1234 zinfo = zipfile.ZipInfo(data)
1235 zinfo.flag_bits |= 0x08 # Include an extended local header.
1236 orig_zip.writestr(zinfo, data)
2181 zinfo = zipf.filelist[0]
2182 self.assertTrue(zinfo.filename.endswith("/x/"))
2183 self.assertEqual(zinfo.external_attr, (mode << 16) | 0x10)
2185 zinfo = zipf.filelist[1]
2186 self.assertTrue(zinfo.filename, "y/")
2187 self.assertEqual(zinfo.external_attr, (mode << 16) | 0x10)
2189 zinfo = zipf.filelist[0]
2190 self.assertTrue(zinfo.filename.endswith("/x/"))
2191 self.assertEqual(zinfo.external_attr, (mode << 16) | 0x10)
2192 zinfo = zipf.filelist[1]
2193 self.assertTrue(zinfo.filename, "y/")
2194 self.assertEqual(zinfo.external_attr, (mode << 16) | 0x10)
2205 zinfo = zipf.filelist[0]
2206 self.assertEqual(zinfo.filename, "x/")
2207 self.assertEqual(zinfo.external_attr, (0o40775 << 16) | 0x10)
2209 zinfo = zipf.filelist[0]
2210 self.assertTrue(zinfo.filename.endswith("x/"))
2211 self.assertEqual(zinfo.external_attr, (0o40775 << 16) | 0x10)