Skip to content

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

Function: buildUri()

buildUri(path): string

Defined in: packages/fireflow-vfs/src/path/utils.ts:209

Build a VFS URI from a path.

Parameters

path

string

Path string (with or without ff://)

Returns

string

VFS URI string

Example

ts
buildUri('/foo/bar')       // 'ff:///foo/bar'
buildUri('foo/bar')        // 'ff:///foo/bar'
buildUri('ff:///foo/bar')  // 'ff:///foo/bar'

Licensed under BUSL-1.1