MCPcopy
hub / github.com/codeaashu/claude-code / getFilename

Function getFilename

web/lib/fileViewerStore.ts:84–86  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

82}
83
84function getFilename(filePath: string): string {
85 return filePath.split("/").pop() ?? filePath;
86}
87
88export const useFileViewerStore = create<FileViewerState>()((set, get) => ({
89 isOpen: false,

Callers 1

fileViewerStore.tsFile · 0.85

Calls 1

popMethod · 0.80

Tested by

no test coverage detected