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

Function writeFile

src/fileSystem/ftp.js:394–400  ·  view source on GitHub ↗
(content, encoding)

Source from the content-addressed store, hash-verified

392 return data;
393 },
394 async writeFile(content, encoding) {
395 if (typeof content === "string" && encoding) {
396 content = await encode(content, encoding);
397 }
398
399 return ftp.writeFile(content);
400 },
401 createFile(name, data = "") {
402 return ftp.createFile(name, data);
403 },

Callers 2

addPermissionFunction · 0.50
removePermissionFunction · 0.50

Calls 2

encodeFunction · 0.90
writeFileMethod · 0.45

Tested by

no test coverage detected