pub fn exists_at_type(dir: Fd, sub: &ZStr) -> Maybe<ExistsAtType>
sys.zig:3640 — fstatat then S_ISDIR.
fstatat
S_ISDIR