method File.exists
Whether something exists at path (a file, a directory or a link whose target exists).
Example:
use std.io { File }
fn main() io {
print("{File.exists("/definitely/not/here")}")
}Output
false
pub(api) static fn exists(path: str) -> bool ioSince. 1.0.0-beta
Parameters
| Name | Type |
|---|---|
path | str |
Returns
bool
Effects
io
Defined in: std/io/io.oxl:257