MCPcopy Create free account
hub / github.com/IQEngine/IQEngine / getDataSourceMetaPaths

Method getDataSourceMetaPaths

client/src/api/metadata/blob-client.ts:78–87  ·  view source on GitHub ↗
(account: string, container: string)

Source from the content-addressed store, hash-verified

76 }
77
78 async getDataSourceMetaPaths(account: string, container: string): Promise<string[]> {
79 const containerClient = getContainerClient(this.dataSources, account, container);
80 const blobNames: Array<string> = [];
81 for await (const i of containerClient.listBlobsFlat()) blobNames.push(i.name);
82 const blobsToProcess = blobNames.filter(
83 (blobName) =>
84 blobName.split('.').pop() === 'sigmf-meta' && blobNames.includes(blobName.split('.')[0] + '.sigmf-data')
85 );
86 return blobsToProcess;
87 }
88
89 async updateMeta(account: string, container: string, filePath: string, meta: SigMFMetadata): Promise<any> {
90 // Currently update meta doesnt even try to update the blob so we are just going to return here

Callers

nothing calls this directly

Calls 1

getContainerClientFunction · 0.90

Tested by

no test coverage detected