MCPcopy Create free account
hub / github.com/hokein/electron-sample-apps / setFile

Function setFile

mini-code-editor/editor.js:41–44  ·  view source on GitHub ↗
(theFileEntry, isWritable)

Source from the content-addressed store, hash-verified

39}
40
41function setFile(theFileEntry, isWritable) {
42 fileEntry = theFileEntry;
43 hasWriteAccess = isWritable;
44}
45
46function readFileIntoEditor(theFileEntry) {
47 fs.readFile(theFileEntry.toString(), function (err, data) {

Callers 2

onChosenFileToOpenFunction · 0.85
onChosenFileToSaveFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected