Function lrs::file::real_path_buf

Returns a canonicalized absolute path.

Syntax

fn real_path_buf<P>(path: P, buf: &'a mut [u8]) -> Result<&'a mut CStr, Errno>
    where P: ToCString,

Arguments

NameDescription
path

The path to canonicalize.

buf

The buffer where the path will be stored in.

Remarks

The path will not contain any /./, /../, or //.

See also