MCPcopy Create free account
hub / github.com/alexankitty/Myrient-Search-Engine / writeFile

Method writeFile

lib/crawler/filehandler.js:48–57  ·  view source on GitHub ↗
(filePath, data)

Source from the content-addressed store, hash-verified

46 }
47
48 static async writeFile(filePath, data) {
49 try {
50 // Ensure directory exists
51 await fs.promises.mkdir(path.dirname(filePath), { recursive: true });
52
53 await writeFile(filePath, data);
54 } catch (err) {
55 console.error(err);
56 }
57 }
58}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected