:sig
function file_rename(from : string, to : string) bool

:params
from : source path
to : destination path

:returns
`true` if Capy renames the file. Otherwise, `false`.

:content
`file_rename` changes a file path. The source path no longer exists after a successful call.

:example capy render
file_put_contents("/tmp/doc-rename-source.txt", "moved")
if file_rename("/tmp/doc-rename-source.txt", "/tmp/doc-rename-destination.txt") {
    print(file_get_contents("/tmp/doc-rename-destination.txt"), "\n")
}

:see-group
files
