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

Method getPath

cli/src/cli/paths.ts:94–100  ·  view source on GitHub ↗
(path: string, supportedTypes?: PathType[], unsupportedTypeMessage?: string)

Source from the content-addressed store, hash-verified

92 }
93
94 getPath(path: string, supportedTypes?: PathType[], unsupportedTypeMessage?: string): Path {
95 const p = new Path(this.sdk, this.photosSdk, path, this.eventsManager);
96 if (supportedTypes && !supportedTypes.includes(p.type)) {
97 throw new ValidationError(unsupportedTypeMessage || `Path "${path}" is not supported`);
98 }
99 return p;
100 }
101
102 getPublicLinkPath(path: string): PublicLinkPath {
103 if (!this.publicLinkSdk) {

Callers 10

getPathsMethod · 0.95
getNodeMethod · 0.95
actionMethod · 0.80
actionMethod · 0.80
actionMethod · 0.80
actionMethod · 0.80
actionMethod · 0.80
actionMethod · 0.80
actionMethod · 0.80
actionMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected