OxL Reference

method Metadata.isDir

Whether the entry is a directory.

Example:

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

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

Since. 1.0.0-beta

Returns

bool

Effects

none declared (pure unless the body says otherwise)

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

See also