MCPcopy Create free account
hub / github.com/MiniMax-AI/OpenRoom / getFileName

Function getFileName

apps/webuiapps/src/lib/path.ts:9–12  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

7 * Extract file name from path
8 */
9export const getFileName = (path: string): string => {
10 const parts = path.split('/');
11 return parts[parts.length - 1] || '';
12};
13
14/**
15 * Get parent path

Callers 5

writeFileFunction · 0.90
addNodeMethod · 0.90
moveNodeMethod · 0.90
normalizeCloudNodesMethod · 0.90
toTextFileFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected