Skip to content

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

Function: toPath()

toPath(uri): string

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

Convert a ff:// URI to a plain path

Parameters

uri

string

The ff:// URI

Returns

string

Plain path without scheme

Example

ts
toPath('ff://docs/readme.md') // 'docs/readme.md'
toPath('docs/readme.md') // 'docs/readme.md'

Licensed under BUSL-1.1