Checks whether a file exists.
fn exists<P>(path: P) -> Result<bool, Errno>
where P: ToCString,| Name | Description |
|---|---|
| path | The path to the file to be checked. |
Returns true if the file exists, false otherwise.
If the path refers to a symbolic link, then the existence of the symbolic link is checked.
If the path is relative, it will be interpreted relative to the current working directory.