MCPcopy Create free account
hub / github.com/massCodeIO/massCode / hasMarkdownFiles

Function hasMarkdownFiles

src/main/import/detect.ts:6–11  ·  view source on GitHub ↗
(payload: ImportPayload)

Source from the content-addressed store, hash-verified

4import { parseVSCodeSnippetFiles } from './snippets/vscode'
5
6function hasMarkdownFiles(payload: ImportPayload): boolean {
7 return (payload.files || []).some((file) => {
8 const filePath = (file.relativePath || file.name).toLowerCase()
9 return filePath.endsWith('.md')
10 })
11}
12
13function detectSnippetSource(payload: ImportPayload): ImportSource {
14 if (payload.url?.trim()) {

Callers 1

detectImportSourceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected