OxL Справочник OxL
РусскийEnglish

method File.exists

Whether something exists at path (a file, a directory or a link whose target exists).

Example:

oxl✓ проверяется в CI
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

Параметры

ИмяТип
pathstr

Возвращает

bool

Эффекты

io

Определено в: std/io/io.oxl:257

См. также