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

Function getParentPath

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

Source from the content-addressed store, hash-verified

15 * Get parent path
16 */
17export const getParentPath = (path: string): string => {
18 const parts = path.split('/');
19 parts.pop();
20 return parts.join('/') || '/';
21};
22
23/**
24 * Normalize path

Callers 5

writeFileFunction · 0.90
addNodeMethod · 0.90
moveNodeMethod · 0.90
normalizeCloudNodesMethod · 0.90
getDirPathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected