MCPcopy Create free account
hub / github.com/codeaashu/claude-code / getExtension

Function getExtension

web/components/tools/FileIcon.tsx:87–91  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

85};
86
87function getExtension(filePath: string): string {
88 const parts = filePath.split(".");
89 if (parts.length < 2) return "";
90 return parts[parts.length - 1].toLowerCase();
91}
92
93export function getFileIcon(filePath: string): LucideIcon {
94 const ext = getExtension(filePath);

Callers 1

getFileIconFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected