MCPcopy Index your code
hub / github.com/nwutils/nw-sample-apps / setFile

Function setFile

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

Source from the content-addressed store, hash-verified

46}
47
48function setFile(theFileEntry, isWritable) {
49 fileEntry = theFileEntry;
50 hasWriteAccess = isWritable;
51}
52
53function readFileIntoEditor(theFileEntry) {
54 fs.readFile(theFileEntry, function (err, data) {

Callers 2

onChosenFileToOpenFunction · 0.85
onChosenFileToSaveFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected