MCPcopy Create free account
hub / github.com/apache/tvm / remove

Method remove

web/src/opfs_store.ts:193–209  ·  view source on GitHub ↗
(url: string)

Source from the content-addressed store, hash-verified

191 }
192
193 async remove(url: string): Promise<void> {
194 try {
195 const directory = await this.getScopedDirectory();
196 const baseName = await this.hashUrl(url);
197 await this.removeEntryIfExists(
198 directory,
199 this.getPayloadFilename(baseName),
200 );
201 await this.removeEntryIfExists(
202 directory,
203 this.getRecordFilename(baseName),
204 );
205 } catch (err) {
206 this.resetDirectoryOnInvalidStateError(err);
207 throw err;
208 }
209 }
210
211 private async getStoredEntry(
212 url: string,

Callers 4

_check_build_resultsFunction · 0.45
get_ref_dataFunction · 0.45
deleteInCacheMethod · 0.45

Calls 6

getScopedDirectoryMethod · 0.95
hashUrlMethod · 0.95
removeEntryIfExistsMethod · 0.95
getPayloadFilenameMethod · 0.95
getRecordFilenameMethod · 0.95

Tested by 3

_check_build_resultsFunction · 0.36
get_ref_dataFunction · 0.36