MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / removeFile

Function removeFile

src/lib/recents.js:61–66  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

59 },
60
61 removeFile(url) {
62 ({ url } = Url.parse(url));
63 this.files = this.files.filter((file) => {
64 return !new RegExp("^" + escapeStringRegexp(url)).test(file);
65 });
66 },
67
68 clear() {
69 this.files = [];

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected