MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / isImageFile

Function isImageFile

cli/src/utils/image-handler.ts:92–95  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

90 * Validates if a file path is a supported image
91 */
92export function isImageFile(filePath: string): boolean {
93 const ext = path.extname(filePath).toLowerCase()
94 return SUPPORTED_IMAGE_EXTENSIONS.has(ext)
95}
96
97/**
98 * Resolves a file path, handling ~, relative paths, etc.

Callers 8

validateAndAddImageFunction · 0.90
createPasteHandlerFunction · 0.90
getImageFilePathFromTextFunction · 0.90
dispatchActionFunction · 0.90
processImageFileFunction · 0.85
addPathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected