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

Function generateSubfolderName

apps/sim/lib/workspaces/naming.ts:117–123  ·  view source on GitHub ↗

* Generates the next subfolder name for a parent folder

(workspaceId: string, parentFolderId: string)

Source from the content-addressed store, hash-verified

115 * Generates the next subfolder name for a parent folder
116 */
117async function generateSubfolderName(workspaceId: string, parentFolderId: string): Promise<string> {
118 const folders = await fetchWorkspaceFolders(workspaceId)
119
120 const subfolders = folders.filter((folder) => folder.parentId === parentFolderId)
121
122 return generateIncrementalName(subfolders, 'Subfolder')
123}

Callers

nothing calls this directly

Calls 2

fetchWorkspaceFoldersFunction · 0.85
generateIncrementalNameFunction · 0.85

Tested by

no test coverage detected