Skip to content

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

path

VFS Path Module

Provides safe, immutable path and URI handling for the VFS system.

Example

typescript
import { VfsPath, VfsUri, buildUri, basename } from '@persistentai/fireflow-vfs/path'

// Using VfsPath class
const path = VfsPath.parse('/foo/bar.txt')
path.name        // 'bar.txt'
path.parent()    // VfsPath('/foo')

// Using VfsUri class
const uri = VfsUri.fromPath('/foo/bar.txt')
uri.toString()   // 'ff:///foo/bar.txt'

// Using utility functions
basename('/foo/bar.txt')  // 'bar.txt'
buildUri('/foo/bar')      // 'ff:///foo/bar'

Interfaces

Type Aliases

Variables

Functions

References

basename

Re-exports basename


buildUri

Re-exports buildUri


normalizePath

Re-exports normalizePath


toLakeFSPath

Re-exports toLakeFSPath


VfsPath

Re-exports VfsPath


VfsUri

Re-exports VfsUri

Licensed under BUSL-1.1