MCPcopy Create free account
hub / github.com/develop202/migu_video / createFile

Function createFile

utils/fileUtil.js:2–6  ·  view source on GitHub ↗
(filePath)

Source from the content-addressed store, hash-verified

1import fs from "node:fs"
2function createFile(filePath) {
3 if (!fs.existsSync(filePath)) {
4 writeFile(filePath, "")
5 }
6}
7
8function writeFile(filePath, content) {
9 fs.writeFile(filePath, content, error => {

Callers

nothing calls this directly

Calls 1

writeFileFunction · 0.85

Tested by

no test coverage detected