MCPcopy Index your code
hub / github.com/RustPython/RustPython / mkdir

Method mkdir

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

Source from the content-addressed store, hash-verified

323 return self.zip_file.open(str(self), 'w')
324
325 def mkdir(self, mode=0o777):
326 zinfo = zipfile.ZipInfo(str(self) + '/')
327 zinfo.external_attr |= stat.S_IFDIR << 16
328 zinfo.external_attr |= stat.FILE_ATTRIBUTE_DIRECTORY
329 self.zip_file.writestr(zinfo, '')
330
331 def symlink_to(self, target, target_is_directory=False):
332 zinfo = zipfile.ZipInfo(str(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

strFunction · 0.85
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