MCPcopy
hub / github.com/serverless/serverless / writeFile

Method writeFile

packages/serverless/lib/classes/utils.js:49–58  ·  view source on GitHub ↗
(filePath, contents, cycles)

Source from the content-addressed store, hash-verified

47 }
48
49 async writeFile(filePath, contents, cycles) {
50 return new Promise((resolve, reject) => {
51 try {
52 this.writeFileSync(filePath, contents, cycles)
53 } catch (e) {
54 reject(e)
55 }
56 resolve()
57 })
58 }
59
60 async appendFileSync(filePath, conts) {
61 const contents = conts || ''

Callers 14

printSummaryFunction · 0.80
writeFileFunction · 0.80
generateFunction · 0.80
saveCompiledTemplateFunction · 0.80
buildDockerImageMethod · 0.80
downloadDataFromUriFunction · 0.80
writeFileFunction · 0.80
addNewArrayItemFunction · 0.80
removeExistingArrayItemFunction · 0.80
read-file.test.jsFile · 0.80

Calls 1

writeFileSyncMethod · 0.95

Tested by

no test coverage detected