MCPcopy Create free account
hub / github.com/bearlyai/OpenADE / isKnownBinaryExtension

Function isKnownBinaryExtension

projects/runtime-node/src/fileMetadata.ts:98–100  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

96}
97
98function isKnownBinaryExtension(filePath: string): boolean {
99 return KNOWN_BINARY_EXTENSIONS.has(path.extname(filePath).toLowerCase())
100}
101
102function isLikelyBinarySample(sample: Uint8Array): boolean {
103 if (sample.length === 0) return false

Callers 1

classifyFileMetadataFunction · 0.85

Calls 1

hasMethod · 0.80

Tested by

no test coverage detected