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

Method getNode

cli/src/cli/paths.ts:361–369  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

359 }
360 return this.getAlbumByName(pathString);
361 }
362
363 private async getAlbumByName(name: string): Promise<NodeEntity> {
364 for await (const maybeAlbum of this.photosSdk.iterateAlbums()) {
365 if (getName(maybeAlbum) === name) {
366 return maybeAlbum;
367 }
368 }
369 throw new ValidationError(`Album not found: ${name}`);
370 }
371}
372

Callers 1

getChildMethod · 0.95

Calls 4

getNodeByPathMethod · 0.95
isNodeUidFunction · 0.85
getNodeMethod · 0.65
getRootNodeMethod · 0.65

Tested by

no test coverage detected