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

Method create_file

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

Source from the content-addressed store, hash-verified

5063 os.mkdir(self.path)
5064
5065 def create_file(self, name="file.txt"):
5066 path = self.bytes_path if isinstance(name, bytes) else self.path
5067 filename = os.path.join(path, name)
5068 create_file(filename, b'python')
5069 return filename
5070
5071 def get_entries(self, names):
5072 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 3

isinstanceFunction · 0.85
create_fileFunction · 0.70
joinMethod · 0.45

Tested by

no test coverage detected