Skip to content

PersistentAI API Documentation / @persistentai/fireflow-vfs / server / buildDirectoryTreeNode

Function: buildDirectoryTreeNode()

buildDirectoryTreeNode(repoName, branch, path): Promise<TreeNode>

Defined in: packages/fireflow-vfs/src/utils/tree-helpers.ts:72

Build a TreeNode for a directory including ALL nested children recursively

This queries lakeFS with no delimiter to get ALL nested files, then constructs a proper tree structure from the flat list. This ensures move events contain the complete directory tree.

Parameters

repoName

string

lakeFS repository name

branch

string

Branch name

path

string

Directory path (should end with '/')

Returns

Promise<TreeNode>

TreeNode with full recursive children populated from lakeFS

Licensed under BUSL-1.1