1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-24 00:50:28 +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) {