Returns whether a path relative to this file can be accessed.
impl File {
fn rel_can_access<P>(&self, path: P, mode: AccessMode) -> Result<bool, Errno>
where P: ToCString,
}| Name | Description |
|---|---|
| path | The path to be inspected. |
| mode | The access mode which is to be tested. |
If the path is relative, this file must be a directory and the path will be interpreted relative to it. If the file at the path is a symlink, it will be resolved recursively and information about the first non-symlink target will be returned.