Method lrs::file::File::rel_read_link_buf

Reads the target of a symbolic link relative to this file.

Syntax

impl File {
    fn rel_read_link_buf<P>(&self, link: P, buf: &'a mut [u8]) -> Result<&'a mut NoNullStr, Errno>
        where P: ToCString,
}

Arguments

NameDescription
link

The path to the symlink.

buf

The buffer in which the target will be stored.

Return value

Returns the target of the link.

Remarks

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

See also