Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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_hierarchy
Method · 0.95
test_copy_file_empty
Method · 0.45
test_copy_file_to_existing_file
Method · 0.45
test_read_text
Method · 0.45
test_read_text_with_newlines
Method · 0.45
Calls
2
str
Function · 0.85
writestr
Method · 0.80
Tested by
4
test_copy_file_empty
Method · 0.36
test_copy_file_to_existing_file
Method · 0.36
test_read_text
Method · 0.36
test_read_text_with_newlines
Method · 0.36