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

Function fetchWorkspaceFolders

apps/sim/lib/workspaces/naming.ts:96–101  ·  view source on GitHub ↗
(workspaceId: string)

Source from the content-addressed store, hash-verified

94}
95
96async function fetchWorkspaceFolders(workspaceId: string): Promise<FolderApi[]> {
97 const { folders } = await requestJson(listFoldersContract, {
98 query: { workspaceId },
99 })
100 return folders
101}
102
103/**
104 * Generates the next folder name for a workspace

Callers 2

generateFolderNameFunction · 0.85
generateSubfolderNameFunction · 0.85

Calls 1

requestJsonFunction · 0.90

Tested by

no test coverage detected