Method lrs::file::File::rel_real_path_buf

Returns a canonicalized absolute path relative to this file.

Syntax

impl File {
    fn rel_real_path_buf<P>(&self, 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 //.

If the path is relative, this file must be a directory and the path will be interpreted relative to it.

See also