Function: createFsProtectGuardBuilder()
ts
function createFsProtectGuardBuilder(globs): FsProtectGuardNode;Defined in: fs/src/builders/create-fs-protect-guard-builder.ts:13
Compiles a passive FsProtectGuardNode (fs:protect) for fs.protect(globs).
Blocks any write mutation targeting files matching globs unless covered by an explicitly elevated capability lease.
Parameters
| Parameter | Type | Description |
|---|---|---|
globs | readonly string[] | Protected file glob patterns. |
Returns
Deeply frozen FsProtectGuardNode AST descriptor.