method fs.realpath
Absolute path with symbolic links and ./.. resolved; the path must exist.
Example:
use std.io { fs }
fn main() io {
print(fs.realpath("/tmp/../tmp")!)
}Output
/tmp
pub(api) static fn realpath(path: str) -> str | IoError ioSince. 1.0.0-beta
Parameters
| Name | Type |
|---|---|
path | str |
Returns
str
Errors
IoError@error- `IoError` (`NotFound` when the path does not exist).
Effects
io
Defined in: std/io/io.oxl:748