method Metadata.isDir
Whether the entry is a directory.
Example:
use std.io { File }
fn main() io {
print("{File.metadata("/tmp")!.isDir()}")
}Output
true
pub(api) fn isDir() -> boolSince. 1.0.0-beta
Returns
bool
Effects
none declared (pure unless the body says otherwise)
Defined in: std/io/io.oxl:152