Creates a hard link to this file relative to a directory.
impl File {
fn link_rel_to<P>(&self, dir: &File, path: P) -> Result<(), Errno>
where P: ToCString,
}| Name | Description |
|---|---|
| dir | An opened directory. |
| path | The path of the link that will be created. |
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.