MCPcopy Create free account
hub / github.com/ProtonDriveApps/sdk / pathDirname

Function pathDirname

cli/src/cli/paths.ts:398–401  ·  view source on GitHub ↗
(fullPath: string)

Source from the content-addressed store, hash-verified

396
397 private async getNodeByPath(parentNode: NodeEntity, pathString: string) {
398 let node = parentNode;
399 const pathParts = splitPathSegments(pathString);
400 for (const part of pathParts) {
401 if (part === '') {
402 continue;
403 }
404 node = await this.getNodeByName(node, part);

Callers 2

paths.test.tsFile · 0.90
parentPathMethod · 0.85

Calls 2

splitPathSegmentsFunction · 0.85
joinPathSegmentsFunction · 0.85

Tested by

no test coverage detected