MCPcopy Index your code
hub / github.com/simstudioai/sim / decodeVfsPathSegments

Function decodeVfsPathSegments

apps/sim/lib/copilot/vfs/path-utils.ts:41–45  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

39}
40
41export function decodeVfsPathSegments(path: string): string[] {
42 const trimmed = path.trim().replace(/^\/+|\/+$/g, '')
43 if (!trimmed) return []
44 return trimmed.split('/').map(decodeVfsSegment)
45}
46
47export function canonicalizeVfsPath(path: string): string {
48 return encodeVfsPathSegments(decodeVfsPathSegments(path))

Callers 14

tableNameFromVfsPathFunction · 0.90
resolveInputFilesFunction · 0.90
lookupFolderIdByPathFunction · 0.90
executeManageFolderFunction · 0.90
decodeFileFolderPathFunction · 0.90
path-utils.test.tsFile · 0.90
workspacePlanBackingPathFunction · 0.90
workflowPlanBackingPathFunction · 0.90

Calls 1

replaceMethod · 0.65

Tested by

no test coverage detected