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

Function isBinaryByExtension

projects/electron/src/modules/code/git.ts:931–934  ·  view source on GitHub ↗

* Check if a file is likely binary based on extension

(filePath: string)

Source from the content-addressed store, hash-verified

929 * Check if a file is likely binary based on extension
930 */
931function isBinaryByExtension(filePath: string): boolean {
932 const ext = path.extname(filePath).toLowerCase()
933 return BINARY_EXTENSIONS.has(ext)
934}
935
936/**
937 * Parse git diff --numstat output to get file info with binary detection

Callers 1

collectGitSummaryDataFunction · 0.85

Calls 1

hasMethod · 0.80

Tested by

no test coverage detected