rustix::fs

Function statat

source
pub fn statat<P: Arg, Fd: AsFd>(
    dirfd: Fd,
    path: P,
    flags: AtFlags,
) -> Result<Stat>
Expand description

fstatat(dirfd, path, flags)—Queries metadata for a file or directory.

Mode::from_raw_mode and FileType::from_raw_mode may be used to interpret the st_mode field.

§References