{"id":"runtime--File.TryReplace","name":"File.TryReplace","owner":"yeho","package":"runtime.File","kind":"builtin","signature":"File.TryReplace(text source_path, text destination_path) -> bool","description":"Try replace through the File runtime.","context":"Built into Yeho; no package import is needed. Native services require an admitted host and the correct resource lifecycle.","parameters":[{"name":"source_path","type":"text","description":"Supply source path as text.","rule":"Text"},{"name":"destination_path","type":"text","description":"Supply destination path as text.","rule":"Text"}],"returns":"bool","members":[],"tags":["builtin","cpu","file","yeho"],"updated":"2026-09-09","source":{"repository":"yeho","path":"src/compiler/common/intrinsic_registry.cpp","line":834,"sha256":"14d29529d2d3c0e2b587f83c7f125b99ada142ed7ae28612701ea6cb9174ac65"},"status":"registered-intrinsic","notes":["The example checks the call shape. Opening windows, recording audio, changing files, network operations, and process operations have real effects when run. Follow the corresponding package lifecycle before using live resources."],"examples":[{"id":"usage","title":"Call File.TryReplace","description":"A complete typed caller with illustrative arguments. Native operations need the corresponding host and resources.","code":"text source_path = \"source path\"\ntext destination_path = \"destination path\"\nbool result = File.TryReplace(source_path, destination_path)\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.runtime__file_tryreplace\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n","tags":["cpu","builtin"],"run":"cpu-oracle","verification":"type checked","sha256":"e86b08f6122cc07be980b1de49615a4bd0a738eed52fef014c1f22331be01a36","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":[],"url":"https://demonhunterlabs.com/academy/api?item=runtime--File.TryReplace","json":"https://demonhunterlabs.com/reference/items/runtime--File.TryReplace.json","markdown":"https://demonhunterlabs.com/reference/text/runtime--File.TryReplace.md"}
