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

Function writeFile

src/fileSystem/sftp.js:625–631  ·  view source on GitHub ↗
(content, encoding)

Source from the content-addressed store, hash-verified

623 return data;
624 },
625 async writeFile(content, encoding) {
626 if (typeof content === "string" && encoding) {
627 content = await encode(content, encoding);
628 }
629
630 return sftp.writeFile(content, null);
631 },
632 createFile(name, data) {
633 return sftp.createFile(name, data);
634 },

Callers

nothing calls this directly

Calls 2

encodeFunction · 0.90
writeFileMethod · 0.45

Tested by

no test coverage detected