Method lrs::file::File::rel_can_access

Returns whether a path relative to this file can be accessed.

Syntax

impl File {
    fn rel_can_access<P>(&self, path: P, mode: AccessMode) -> Result<bool, Errno>
        where P: ToCString,
}

Arguments

NameDescription
path

The path to be inspected.

mode

The access mode which is to be tested.

Remarks

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.

See also