* Generates the next subfolder name for a parent folder
(workspaceId: string, parentFolderId: string)
| 115 | * Generates the next subfolder name for a parent folder |
| 116 | */ |
| 117 | async 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 | } |
nothing calls this directly
no test coverage detected