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

Method create_file

Lib/test/test_pathlib/support/local_path.py:41–43  ·  view source on GitHub ↗
(self, p, data=b'')

Source from the content-addressed store, hash-verified

39 rmtree(root)
40
41 def create_file(self, p, data=b''):
42 with open(p, 'wb') as f:
43 f.write(data)
44
45 def create_dir(self, p):
46 os.mkdir(p)

Callers

nothing calls this directly

Calls 2

openFunction · 0.50
writeMethod · 0.45

Tested by

no test coverage detected