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

Method getNode

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

Source from the content-addressed store, hash-verified

195 }
196
197 async getNode(): Promise<NodeEntity> {
198 const node = await this.getNodeInternal();
199
200 if (this.usePhotoSdk()) {
201 await this.eventsManager.subscribePhotosScope(node.treeEventScopeId);
202 } else {
203 await this.eventsManager.subscribeDriveScope(node.treeEventScopeId);
204 }
205
206 return node;
207 }
208
209 private async getNodeInternal(): Promise<NodeEntity> {
210 if (this.type === PathType.MyFiles) {

Callers 1

getChildMethod · 0.95

Calls 4

getNodeInternalMethod · 0.95
usePhotoSdkMethod · 0.95
subscribePhotosScopeMethod · 0.80
subscribeDriveScopeMethod · 0.80

Tested by

no test coverage detected