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")}")
}Вывод
false
pub(api) static fn exists(path: str) -> bool ioС версии. 1.0.0-beta
Параметры
| Имя | Тип |
|---|---|
path | str |
Возвращает
bool
Эффекты
io
Определено в: std/io/io.oxl:257