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

Method getNodeByName

cli/src/cli/paths.ts:388–395  ·  view source on GitHub ↗
(parentNode: NodeEntity, name: string)

Source from the content-addressed store, hash-verified

386 }
387
388 const rootNode = await this.publicLinkSdk.getRootNode();
389 return this.getNodeByPath(rootNode, this.fullPath);
390 }
391
392 async getChild(name: string) {
393 const node = await this.getNode();
394 return this.getNodeByName(node, name);
395 }
396
397 private async getNodeByPath(parentNode: NodeEntity, pathString: string) {
398 let node = parentNode;

Callers 2

getChildMethod · 0.95
getNodeByPathMethod · 0.95

Calls 2

getNameFunction · 0.90
iterateFolderChildrenMethod · 0.45

Tested by

no test coverage detected