Skip to content

PersistentAI API Documentation / @persistentai/fireflow-vfs / path / isEventFile

Function: isEventFile()

isEventFile(path): boolean

Defined in: packages/fireflow-vfs/src/path/flow-package.ts:108

Check if path is a .ffevent file.

Parameters

path

string

Path to check

Returns

boolean

True if path ends with .ffevent

Example

ts
isEventFile('workflows/my-flow.fflow/events/my-event.ffevent') // true
isEventFile('workflows/my-flow.fflow/flow.json')               // false

Licensed under BUSL-1.1