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

Function isFolderFile

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

Source from the content-addressed store, hash-verified

109}
110
111function isFolderFile(file: HttpImportFile, raw: unknown): boolean {
112 const info = getInfo(raw)
113 return (
114 /(?:^|\/)folder\.ya?ml$/i.test(normalizePath(file.name))
115 || info.type === 'folder'
116 )
117}
118
119function isRequestFile(raw: unknown): raw is UnknownRecord {
120 const info = getInfo(raw)

Callers 1

parseOpenCollectionFilesFunction · 0.85

Calls 2

normalizePathFunction · 0.85
getInfoFunction · 0.70

Tested by

no test coverage detected