mirror of
https://github.com/TiddlyWiki/TiddlyWiki5.git
synced 2026-04-26 09:14:50 +00:00
Create tiddlers subfolder in wiki folder if it is not present
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user