MCPcopy Create free account
hub / github.com/AIScientists-Dev/Flowtrace / encodeFilePath

Function encodeFilePath

frontend/src/features/trace/api/trace-core.ts:55–57  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

53 * `#`, `?`, or `%` resolve to the right file instead of a truncated/malformed
54 * URL. Axum decodes the segments back before the `..` guard runs. */
55export function encodeFilePath(path: string): string {
56 return path.split('/').map(encodeURIComponent).join('/')
57}
58
59export function useStepFiles(traceId: string | undefined, stepId: string | undefined) {
60 return useQuery<StepFile[]>({

Callers 3

DownloadFallbackFunction · 0.90
FileViewerFunction · 0.90
useStepFileContentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…