Expand description
Shared safe file access: pinned no-follow opens and directory listings.
Structs§
- Entry
Name - One path component, ready for
openat.
Enums§
- File
Kind - The type of a directory entry, read without following it.
Constants§
- ALIASED_
NAMES - Whether a name can reach an entry spelled differently, as case-insensitive Windows and macOS volumes allow; path-returning interfaces then also check the exact spelling.
Functions§
- canonicalize
- The absolute path of an existing file with every link resolved.
- case_
sensitive - Preserve the existing case-sensitive logical namespace on other Unix systems.
- current_
directory - Read the process’s current directory and resolve its native filesystem aliases.
- entry_
kind - The type of one entry of a pinned directory, without following it.
- exact_
name - Other Unix platforms keep their existing case-sensitive open behavior.
- is_
absolute - The filesystem root of an absolute path (
/, or a Windows volume or share) and the names below it, in order.Nonewhen a component is.or... Whether a native path is absolute on this system. - is_
link_ refusal - Whether
open_entryfailed because the entry is a symlink:O_NOFOLLOWreportsELOOPon Linux and macOS, andEMLINKon FreeBSD and DragonFly. - link_
target - The target a link names, read without following it: a symlink’s text, or on Windows a junction’s or symbolic link’s substitute name.
- logical_
below - The logical form of
pathbelowroot: an absolute native path is taken relative toroot(Noneoutside it), a relative one is already logical. - logical_
from_ native - Convert a native relative path into logical components; roots, traversal and non-UTF-8 names are refused rather than guessing at the host’s separator or prefix rules.
- open_
directory - Open a directory by path, such as the root a scoped walk starts from.
- open_
entry - Open one entry of a pinned directory read-only, without following a symlink.
- open_
no_ follow - Open without following a link in the last component or blocking on a FIFO.
- open_
nonblocking - Open for reading without blocking on a FIFO, so its type can be checked first.
- path_
text - Render a native path for people and JSON clients with portable
/separators. - read_
dir - The entries of a pinned directory, listed through its descriptor rather than a path that could have been replaced by a link.
- scoped_
relative - Parse the physical relative input form used by declared Artifact roots. Preserve its existing rejection of backslashes and traversal while keeping native root checks here.
- split_
root