MCPcopy
hub / github.com/TiddlyWiki/TiddlyDesktop / saveFile

Function saveFile

source/js/utils/saving.js:116–119  ·  view source on GitHub ↗
(filepath,content)

Source from the content-addressed store, hash-verified

114
115// Helper function to save a file
116function saveFile(filepath,content) {
117 var fs = require("fs");
118 fs.writeFileSync(filepath,content);
119}
120
121// Helper function to backup a file by copying it to the backup folder
122function backupFile(filepath) {

Callers 1

saving.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected