Skip to content

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

Function: resolveFlowDataPath()

resolveFlowDataPath(flowPathOrUri): string

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

Resolve flow.json path from URI or path. Handles both ff:// URIs and plain paths. Returns lakeFS format (no leading slash).

Parameters

flowPathOrUri

string

Path or URI to .fflow folder

Returns

string

Path to flow.json in lakeFS format

Throws

Error if path doesn't end with .fflow

Example

ts
resolveFlowDataPath('ff:///workflows/my-flow.fflow')
// → 'workflows/my-flow.fflow/flow.json'

resolveFlowDataPath('workflows/my-flow.fflow')
// → 'workflows/my-flow.fflow/flow.json'

Licensed under BUSL-1.1