MCPcopy Index your code
hub / github.com/marimo-team/marimo / update_file

Method update_file

marimo/_server/files/os_file_system.py:305–308  ·  view source on GitHub ↗
(self, path: str, contents: str)

Source from the content-addressed store, hash-verified

303 return self.get_details(new_path).file
304
305 def update_file(self, path: str, contents: str) -> FileInfo:
306 file_path = Path(path)
307 file_path.write_text(contents, encoding="utf-8")
308 return self.get_details(path, contents=contents).file
309
310 def search(
311 self,

Callers

nothing calls this directly

Calls 2

get_detailsMethod · 0.95
write_textMethod · 0.45

Tested by

no test coverage detected