Atomically exchanges two files relative to this file.
impl File {
fn rel_exchange<P, Q>(&self, one: P, two: Q) -> Result<(), Errno>
where P: ToCString,
Q: ToCString,
}| Name | Description |
|---|---|
| one | File one. |
| two | File two. |
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.
The required kernel version is 3.15.