1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-09-27 14:48:19 +00:00

Create tiddlers subfolder in wiki folder if it is not present

This commit is contained in:
Jermolene 2013-12-18 21:11:52 +00:00
parent 2b72e48a3a
commit cc39686693

View File

@ -38,11 +38,15 @@ function FileSystemAdaptor(syncer) {
});
}
for(var f in $tw.boot.files) {
var fileInfo = $tw.boot.files[f];
this.setwatcher(fileInfo.filepath, f);
}
// Create the <wiki>/tiddlers folder if it doesn't exist
// TODO: we should create the path recursively
if(!fs.existsSync($tw.boot.wikiTiddlersPath)) {
fs.mkdirSync($tw.boot.wikiTiddlersPath);
}
}
FileSystemAdaptor.prototype.getTiddlerInfo = function(tiddler) {