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

Method create_file

Lib/test/test_pathlib/support/zip_path.py:36–37  ·  view source on GitHub ↗
(self, path, data=b'')

Source from the content-addressed store, hash-verified

34 root.zip_file.close()
35
36 def create_file(self, path, data=b''):
37 path.zip_file.writestr(str(path), data)
38
39 def create_dir(self, path):
40 zip_info = zipfile.ZipInfo(str(path) + '/')

Callers 5

create_hierarchyMethod · 0.95
test_copy_file_emptyMethod · 0.45
test_read_textMethod · 0.45

Calls 2

strFunction · 0.85
writestrMethod · 0.80

Tested by 4

test_copy_file_emptyMethod · 0.36
test_read_textMethod · 0.36