mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-23 10:07:19 +00:00
Create tiddlers
subfolder in wiki folder if it is not present
This commit is contained in:
parent
2b72e48a3a
commit
cc39686693
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user