Expand description
ยงPath Security Utilities
Functions for validating filesystem access and enforcing workspace trust.
Functionsยง
- Contains
Land ๐Editor Segment - True when
pathcontains a directory segment whose name starts withland.editor.. Used to tighten the Application-Support / XDG checks so we only trust directories that Land itself provisioned, not every file under$HOME/Library/Application Support. - Contains
Path ๐Segments - True when every element of
segmentsappears in order as consecutive path components ofpath. Used to match Sky / Dependency extension roots regardless of which relative-path prefix the scanner used. - IsPath
Allowed ForAccess - A critical security helper that checks if a given filesystem path is allowed for access.
- IsTrusted
System ๐Path - Return
truewhenPathToCheckfalls under a directory that Land itself manages and the sandbox should not gate.