PersistentAI API Documentation / @persistentai/fireflow-vfs / path / stem
Function: stem()
stem(
pathOrUri):string
Defined in: packages/fireflow-vfs/src/path/utils.ts:85
Get the filename without extension.
Parameters
pathOrUri
string
Path or URI string
Returns
string
The stem (filename without extension)
Example
ts
stem('/foo/bar.txt') // 'bar'
stem('/foo/bar.tar.gz') // 'bar.tar'