Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
84
function
getFilename(filePath: string): string {
85
return
filePath.split(
"/"
).pop() ?? filePath;
86
}
87
88
export
const
useFileViewerStore = create<FileViewerState>()((set, get) => ({
89
isOpen: false,
Callers
1
fileViewerStore.ts
File · 0.85
Calls
1
pop
Method · 0.80
Tested by
no test coverage detected