Skip to content

Interface: FsRequireReadBeforeWriteGuardNode ​

Defined in: core/dist/ast/domain/fs-require-read-before-write-guard-node.d.ts:8

Passive AST node requiring an existing file to be read in the session before it is edited or overwritten (fs.requireReadBeforeWrite).

Prevents blind file overwrites by verifying that any pre-existing target path has a prior FsToolEffect read record in the current actor session.

Extends ​

Properties ​

PropertyModifierTypeDescriptionInherited fromDefined in
idreadonlystringLogical identifier of the guard instance.BasePolicyGuardASTNode.idcore/dist/ast/base/base-policy-guard-ast-node.d.ts:13
typereadonly"fs:require-read-before-write"Unique string-literal discriminant of the policy guard node.BasePolicyGuardASTNode.typecore/dist/ast/base/base-policy-guard-ast-node.d.ts:11

Released under the MIT License.