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

Method create_dir

Lib/test/test_pathlib/support/zip_path.py:39–43  ·  view source on GitHub ↗
(self, path)

Source from the content-addressed store, hash-verified

37 path.zip_file.writestr(str(path), data)
38
39 def create_dir(self, path):
40 zip_info = zipfile.ZipInfo(str(path) + '/')
41 zip_info.external_attr |= stat.S_IFDIR << 16
42 zip_info.external_attr |= stat.FILE_ATTRIBUTE_DIRECTORY
43 path.zip_file.writestr(zip_info, '')
44
45 def create_symlink(self, path, target):
46 zip_info = zipfile.ZipInfo(str(path))

Callers 6

setUpMethod · 0.45
setUpMethod · 0.45
test_copy_intoMethod · 0.45

Calls 2

strFunction · 0.85
writestrMethod · 0.80

Tested by 6

setUpMethod · 0.36
setUpMethod · 0.36
test_copy_intoMethod · 0.36