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

Method getTrashedNode

cli/src/cli/paths.ts:267–274  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

265 }
266
267 private async getTrashedNode(name: string) {
268 for await (const maybeNode of this.sdk.iterateTrashedNodes()) {
269 if (getName(maybeNode) === name) {
270 return maybeNode;
271 }
272 }
273 throw new ValidationError('Trashed node not found');
274 }
275
276 private async getDevicesRootFolder(): Promise<NodeEntity> {
277 for await (const device of this.driveSdk.iterateDevices()) {

Callers 1

getNodeInternalMethod · 0.95

Calls 2

getNameFunction · 0.90
iterateTrashedNodesMethod · 0.45

Tested by

no test coverage detected