MCPcopy
hub / github.com/simstudioai/sim / generateFileId

Function generateFileId

apps/sim/lib/uploads/contexts/execution/utils.ts:27–29  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25 * Generate unique file ID for execution files
26 */
27export function generateFileId(): string {
28 return `file_${Date.now()}_${randomFloat().toString(36).substring(2, 9)}`
29}
30
31/**
32 * Check if a key matches execution file pattern

Callers 1

uploadExecutionFileFunction · 0.90

Calls 2

randomFloatFunction · 0.90
toStringMethod · 0.45

Tested by

no test coverage detected