OxL Reference

method File.exists

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

Example:

oxl✓ checked in CI
use std.io { File }

fn main() io {
  print("{File.exists("/definitely/not/here")}")
}
Output
false
pub(api) static fn exists(path: str) -> bool  io

Since. 1.0.0-beta

Parameters

NameType
pathstr

Returns

bool

Effects

io

Defined in: std/io/io.oxl:257

See also