method Metadata.isSymlink
Whether the entry is a symbolic link (metadata does not follow links, stat does).
Example:
use std.io { File }
fn main() io {
print("{File.metadata("/tmp")!.isSymlink()}")
}Output
false
pub(api) fn isSymlink() -> boolSince. 1.0.0-beta
Returns
bool
Effects
none declared (pure unless the body says otherwise)
Defined in: std/io/io.oxl:166