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

Method create_file

Lib/test/test_os/test_os.py:4790–4794  ·  view source on GitHub ↗
(self, name="file.txt")

Source from the content-addressed store, hash-verified

4788 os.mkdir(self.path)
4789
4790 def create_file(self, name="file.txt"):
4791 path = self.bytes_path if isinstance(name, bytes) else self.path
4792 filename = os.path.join(path, name)
4793 create_file(filename, b'python')
4794 return filename
4795
4796 def get_entries(self, names):
4797 entries = dict((entry.name, entry)

Callers 14

test_unpickableMethod · 0.95
test_attributesMethod · 0.95
create_file_entryMethod · 0.95
test_broken_symlinkMethod · 0.95
test_bytesMethod · 0.95
test_bytes_likeMethod · 0.95
test_fdMethod · 0.95
test_closeMethod · 0.95
test_context_managerMethod · 0.95

Calls 2

create_fileFunction · 0.70
joinMethod · 0.45

Tested by

no test coverage detected