Renames a file relative to this file.
impl File {
fn rel_rename<P, Q>(&self, from: P, to: Q, replace: bool) -> Result<(), Errno>
where Q: ToCString,
P: ToCString,
}| Name | Description |
|---|---|
| from | The path of the file to be renamed. |
| to | The new name of the file. |
| replace | Whether |
If the paths are relative, this file must be a directory and the paths will be interpreted relative to it. Both paths must refer to the same mount point or the operation fails.
If replace is false, the required kernel version is 3.15.