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

Function isOpenCollectionRoot

src/main/http/import/opencollection.ts:100–105  ·  view source on GitHub ↗
(file: HttpImportFile, raw: unknown)

Source from the content-addressed store, hash-verified

98}
99
100function isOpenCollectionRoot(file: HttpImportFile, raw: unknown): boolean {
101 return (
102 /(?:^|\/)opencollection\.ya?ml$/i.test(normalizePath(file.name))
103 && isRecord(raw)
104 )
105}
106
107function isBundledCollection(raw: unknown): raw is UnknownRecord {
108 return isRecord(raw) && Array.isArray(raw.items)

Callers 1

parseOpenCollectionFilesFunction · 0.85

Calls 2

normalizePathFunction · 0.85
isRecordFunction · 0.70

Tested by

no test coverage detected