Method lrs::file::File::rel_read_link

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

Syntax

impl File {
    fn rel_read_link<P>(&self, link: P) -> Result<NoNullString<Libc>, Errno>
        where P: ToCString,
}

Arguments

NameDescription
link

The path to the symlink.

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