Hello Jeremy,
TiddlyDesktop ver 0.0.14 does not save TWc backups if the folder for
backups is missing on the filesystem.
If the folder does not exist we need to create it.
Can you update the saveFile function in saving.js with the code here below:
// saving to the local file system,
// filepath, content and backup filename are provided by TWclassic
function saveFile(filepath,content) {
var fs = require("fs");
var pathName = filepath.substr(0, filepath.lastIndexOf("/"));
if (!fs.existsSync(pathName)) fs.mkdirSync(pathName);
fs.writeFileSync(filepath,content);
}
Have a nice day, Okido
--
You received this message because you are subscribed to the Google Groups
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywikidev/6f0d3ce9-d3f8-4622-b687-b850cc5a1d58%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.