MCPcopy Create free account
hub / github.com/anilkumarum/mark-clipper / writeFile

Function writeFile

background/attachment.js:60–66  ·  view source on GitHub ↗
(fileBlob, fileName, directory)

Source from the content-addressed store, hash-verified

58}
59
60async function writeFile(fileBlob, fileName, directory) {
61 try {
62 await fileName.write(fileBlob);
63 } catch (error) {
64 alert(error);
65 }
66}
67
68async function appendImgLink(noteName, imgShotLink) {
69 const imgLinkBuffer = encode(imgShotLink);

Callers 2

writeScreenshotFileFunction · 0.85
writeAttachmentFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected