MCPcopy
hub / github.com/qawolf/cli / writeFile

Function writeFile

src/shell/fs.ts:75–84  ·  view source on GitHub ↗
(path, data, options)

Source from the content-addressed store, hash-verified

73 await fs.promises.unlink(path);
74 },
75 async writeFile(path, data, options) {
76 if (typeof data === "string") {
77 await fs.promises.writeFile(path, data, {
78 encoding: "utf8",
79 mode: options?.mode,
80 });
81 } else {
82 await fs.promises.writeFile(path, data, options ?? undefined);
83 }
84 },
85 readdir(path) {
86 return fs.promises.readdir(path);
87 },

Calls

no outgoing calls

Tested by 3

stageEnvFunction · 0.40
buildArchiveFunction · 0.40
stageFunction · 0.40