:sig
function file_stat(path : string) dval

:params
path : path to inspect

:returns
A `dval` with file metadata.

:content
`file_stat` returns metadata for a path. The result includes `exists`, `is_file`, `is_dir`, `is_symlink`, `size`, `mtime`, `ctime`, and `mode`.

:example capy render
file_put_contents("/tmp/doc-stat.txt", "12345")
var stat := file_stat("/tmp/doc-stat.txt")
print(u64(stat["size"]), "\n")

:see-group
files
