PersistentAI API Documentation / @persistentai/fireflow-vfs / / getExtension
Function: getExtension()
getExtension(
uri):string
Defined in: packages/fireflow-vfs/src/utils/uri.ts:269
Get the file extension from a ff:// URI
Parameters
uri
string
The ff:// URI
Returns
string
File extension (without dot) or empty string
Example
ts
getExtension('ff://docs/readme.md') // 'md'
getExtension('ff://docs/') // ''