MCPcopy Create free account
hub / github.com/IceClusters/icmysql / ModifyData

Function ModifyData

src/utils/Files.js:38–41  ·  view source on GitHub ↗
(path, data)

Source from the content-addressed store, hash-verified

36}
37
38async function ModifyData(path, data) {
39 if (!(await FileExist(path))) return;
40 await fs.promises.writeFile(path, data);
41}
42
43async function CreateDirRecursive(path) {
44 await fs.mkdirSync(path, { recursive: true });

Callers 1

SaveDataFunction · 0.85

Calls 1

FileExistFunction · 0.85

Tested by

no test coverage detected