Synced
PathBoundary.RequireUnlinkedPath
Section titled “PathBoundary.RequireUnlinkedPath”
- Resolves an owned path while rejecting existing links in its containment chain.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Core.IO
Declaration
Section titled “Declaration”public static string Inno.Core.IO.PathBoundary.RequireUnlinkedPath(string root, string path)Parameters
Section titled “Parameters”Parameter root: The trusted ownership root, which may not exist yet.
Parameter path: The absolute existing or future path beneath that root.
Returns
Section titled “Returns”The normalized contained path after every existing entry from the root has been inspected.
Exceptions
Section titled “Exceptions”Exception T:System.IO.IOException: The path escapes the boundary or an existing entry is a link or reparse point.
Remarks
Section titled “Remarks”This validates the observed filesystem state. Concurrent mutations require an owner lease; it does not grant protection against unrelated actors replacing paths after validation.