MCPcopy Index your code
hub / github.com/github/docs / updateFile

Function updateFile

src/graphql/scripts/update-files.js:155–159  ·  view source on GitHub ↗
(filepath, content)

Source from the content-addressed store, hash-verified

153}
154
155async function updateFile(filepath, content) {
156 console.log(`fetching latest data to ${filepath}`)
157 await mkdirp(path.dirname(filepath))
158 return fs.writeFile(filepath, content, 'utf8')
159}
160
161async function updateStaticFile(json, filepath) {
162 const jsonString = JSON.stringify(json, null, 2)

Callers 2

mainFunction · 0.85
updateStaticFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected