Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ProtonDriveApps/sdk
/ pathBasename
Function
pathBasename
cli/src/cli/paths.ts:403–406 ·
view source on GitHub ↗
(fullPath: string)
Source
from the content-addressed store, hash-verified
401
if
(part ===
''
) {
402
continue;
403
}
404
node =
await
this.getNodeByName(node, part);
405
}
406
return
node;
407
}
408
409
private
async
getNodeByName(parentNode: NodeEntity, name: string) {
Callers
2
paths.test.ts
File · 0.90
name
Method · 0.85
Calls
1
splitPathSegments
Function · 0.85
Tested by
no test coverage detected