Skip to content

PersistentAI API Documentation / @persistentai/fireflow-vfs / / joinPath

Function: joinPath()

joinPath(...segments): string

Defined in: packages/fireflow-vfs/src/utils/uri.ts:251

Join path segments into a ff:// URI

Parameters

segments

...string[]

Path segments to join

Returns

string

The complete ff:// URI

Example

ts
joinPath('docs', 'readme.md') // 'ff://docs/readme.md'
joinPath('folder/', 'file.txt') // 'ff://folder/file.txt'

Licensed under BUSL-1.1