MCPcopy Create free account
hub / github.com/ZingerLittleBee/ServerBee / isImageFile

Function isImageFile

apps/web/src/lib/file-utils.ts:127–130  ·  view source on GitHub ↗
(filename: string)

Source from the content-addressed store, hash-verified

125}
126
127export function isImageFile(filename: string): boolean {
128 const ext = getExtension(filename)
129 return IMAGE_EXTENSIONS.has(ext)
130}
131
132export function fileIcon(fileType: string, name: string): string {
133 if (fileType === 'Directory') {

Callers 2

FileInfoPanelFunction · 0.90
file-utils.test.tsFile · 0.90

Calls 1

getExtensionFunction · 0.85

Tested by

no test coverage detected