PersistentAI API Documentation / @persistentai/fireflow-vfs / / normalizePath
Function: normalizePath()
normalizePath(
pathOrUri):string
Defined in: packages/fireflow-vfs/src/path/utils.ts:125
Normalize a path (remove double slashes, resolve . and ..).
Parameters
pathOrUri
string
Path or URI string
Returns
string
Normalized path string (WITH leading slash)
Example
ts
normalizePath('//foo//bar//') // '/foo/bar'
normalizePath('/foo/./bar') // '/foo/bar' (if . is handled)
normalizePath('ff:///foo/bar') // '/foo/bar'