MCPcopy Index your code
hub / github.com/continuedev/continue / writeFile

Method writeFile

core/util/filesystem.ts:195–205  ·  view source on GitHub ↗
(fileUri: string, contents: string)

Source from the content-addressed store, hash-verified

193 }
194
195 writeFile(fileUri: string, contents: string): Promise<void> {
196 const filepath = fileURLToPath(fileUri);
197 return new Promise((resolve, reject) => {
198 fs.writeFile(filepath, contents, (err) => {
199 if (err) {
200 reject(err);
201 }
202 resolve();
203 });
204 });
205 }
206
207 removeFile(fileUri: string): Promise<void> {
208 const filepath = fileURLToPath(fileUri);

Callers

nothing calls this directly

Calls 1

writeFileMethod · 0.65

Tested by

no test coverage detected