PersistentAI API Documentation / @persistentai/fireflow-vfs / path / joinPath
Function: joinPath()
joinPath(...
segments):string
Defined in: packages/fireflow-vfs/src/path/utils.ts:102
Join path segments into a single path.
Parameters
segments
...string[]
Path segments to join
Returns
string
Joined path string
Example
ts
joinPath('/foo', 'bar', 'baz.txt') // '/foo/bar/baz.txt'
joinPath('/', 'foo') // '/foo'
joinPath('/foo/', '/bar/') // '/foo/bar'