Function: extractFsViolatedPaths()
ts
function extractFsViolatedPaths(violation): string[];Defined in: fs/src/builders/extract-fs-violated-paths.ts:14
Extracts deduplicated filesystem paths in first-seen order from a PolicyViolation (fs.violatedPaths(violation)).
Iterates violation.violatedEffects in a single pass, inspecting only 'fs:effect' records whose attributes.paths property is an array, and collects unique string path entries without allocating intermediate arrays.
Parameters
| Parameter | Type | Description |
|---|---|---|
violation | PolicyViolation | Policy violation emitted by a pre-flight or post-flight policy guard. |
Returns
string[]
Deduplicated array of violated filesystem paths in first-seen order.