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

Function writeFile

utils/fileUtil.js:8–14  ·  view source on GitHub ↗
(filePath, content)

Source from the content-addressed store, hash-verified

6}
7
8function writeFile(filePath, content) {
9 fs.writeFile(filePath, content, error => {
10 if (error) {
11 throw new Error(`${filePath}:写入${content}失败`)
12 }
13 })
14}
15
16function appendFile(filePath, content) {
17 fs.appendFile(filePath, content, error => {

Callers 4

fetchURLByAndroid720pFunction · 0.90
updateTVFunction · 0.90
updatePEFunction · 0.90
createFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected