MCPcopy Index your code
hub / github.com/python/cpython / mkdir

Method mkdir

Lib/test/test_pathlib/support/zip_path.py:326–330  ·  view source on GitHub ↗
(self, mode=0o777)

Source from the content-addressed store, hash-verified

324 return self.zip_file.open(vfspath(self), mode)
325
326 def mkdir(self, mode=0o777):
327 zinfo = zipfile.ZipInfo(vfspath(self) + '/')
328 zinfo.external_attr |= stat.S_IFDIR << 16
329 zinfo.external_attr |= stat.FILE_ATTRIBUTE_DIRECTORY
330 self.zip_file.writestr(zinfo, '')
331
332 def symlink_to(self, target, target_is_directory=False):
333 zinfo = zipfile.ZipInfo(vfspath(self))

Callers 15

test_mkdirMethod · 0.45
setUpMethod · 0.45
test_delete_missingMethod · 0.45
test_delete_symlinkMethod · 0.45
test_mkdirMethod · 0.45

Calls 2

vfspathFunction · 0.90
writestrMethod · 0.80

Tested by 15

test_mkdirMethod · 0.36
setUpMethod · 0.36
test_delete_missingMethod · 0.36
test_delete_symlinkMethod · 0.36
test_mkdirMethod · 0.36