MCPcopy Index your code
hub / github.com/massCodeIO/massCode / getFolderPath

Function getFolderPath

src/main/import/snippets/raycast.ts:58–68  ·  view source on GitHub ↗
(record: RaycastRecord)

Source from the content-addressed store, hash-verified

56}
57
58function getFolderPath(record: RaycastRecord): string[] {
59 const folder = readString(record, ['folder', 'group', 'collection'])
60 if (!folder) {
61 return []
62 }
63
64 return folder
65 .split('/')
66 .map(part => normalizeImportEntryName(part, 'Imported'))
67 .filter(Boolean)
68}
69
70function getTags(record: RaycastRecord): string[] {
71 const tags: string[] = []

Callers 1

parseRaycastSnippetFilesFunction · 0.70

Calls 2

normalizeImportEntryNameFunction · 0.90
readStringFunction · 0.70

Tested by

no test coverage detected