OxL Reference

method Metadata.isFile

Whether the entry is a regular file.

Example:

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

fn main() io {
  print("{File.metadata("/tmp")!.isFile()}")
}
Output
false
pub(api) fn isFile() -> bool

Since. 1.0.0-beta

Returns

bool

Effects

none declared (pure unless the body says otherwise)

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

See also