:sig
function file_exists(path : string) bool

:params
path : path to test

:returns
`true` when a regular file exists. Otherwise, it returns `false`.

:content
`file_exists` tests for a regular file. It returns `false` for a directory. Use `file_stat` to inspect another path type.

:example capy render
file_put_contents("/tmp/doc-exists.txt", "x")
print(file_exists("/tmp/doc-exists.txt"), "\n")

:see-group
files
