Method lrs::file::File::link_rel_to

Creates a hard link to this file relative to a directory.

Syntax

impl File {
    fn link_rel_to<P>(&self, dir: &File, path: P) -> Result<(), Errno>
        where P: ToCString,
}

Arguments

NameDescription
dir

An opened directory.

path

The path of the link that will be created.

Remarks

If the path is absolute, this is equivalent to link. Otherwise dir must be a directory and the path will be interpreted relative to dir.

See also