MCPcopy
hub / github.com/UdaraJay/Pile / set

Method set

src/main/utils/pileLinks.js:50–59  ·  view source on GitHub ↗
(pilePath, url, data)

Source from the content-addressed store, hash-verified

48 }
49
50 set(pilePath, url, data) {
51 if (pilePath !== this.pilePath) {
52 this.load(pilePath);
53 }
54
55 this.links.set(url, data);
56 this.save();
57
58 return this.links;
59 }
60
61 save() {
62 if (!this.pilePath) return;

Callers 11

PileIndexClass · 0.80
addMethod · 0.80
updateParentOfReplyMethod · 0.80
updateMethod · 0.80
addMethod · 0.80
removeMethod · 0.80
createMethod · 0.80
deleteMethod · 0.80
addDocumentMethod · 0.80
links.tsFile · 0.80
store.tsFile · 0.80

Calls 2

loadMethod · 0.95
saveMethod · 0.95

Tested by

no test coverage detected