MCPcopy
hub / github.com/THU-MAIC/OpenMAIC / exists

Method exists

lib/storage/types.ts:7–7  ·  view source on GitHub ↗

Check if a key already exists in storage.

(hash: string, type: StorageType)

Source from the content-addressed store, hash-verified

5 upload(hash: string, blob: Buffer, type: StorageType, mimeType?: string): Promise<string>;
6 /** Check if a key already exists in storage. */
7 exists(hash: string, type: StorageType): Promise<boolean>;
8 /** Build the public download URL for a given hash. */
9 getUrl(hash: string, type: StorageType): string;
10 /** Batch check which hashes exist. Returns set of existing hashes. */

Callers 15

renderCustomGeometryFunction · 0.65
parseRelsFunction · 0.65
isPlaceholderFunction · 0.65
getShapeXfrmInEmuFunction · 0.65
getGroupXfrmInEmuFunction · 0.65
parseLayoutFunction · 0.65
isPlaceholderFunction · 0.65
parseMasterFunction · 0.65
isTableFrameFunction · 0.65
tryParseOleDocxMathFunction · 0.65
findOleFallbackPicFunction · 0.65
parseDiagramFrameFunction · 0.65

Implementers 1

NoopStorageProviderlib/storage/providers/noop.ts

Calls

no outgoing calls

Tested by

no test coverage detected