mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-08-07 14:23:53 +00:00
Use synchronous file writes for saving tiddlers
So that we don't get problems with "docs.tid" overwrites "Docs.tid" halfway through each other
This commit is contained in:
parent
8e9b2996eb
commit
9155b8475f
@ -42,9 +42,7 @@ Command.prototype.execute = function() {
|
|||||||
var renderTree = new $tw.WikiRenderTree(parser,{wiki: wiki});
|
var renderTree = new $tw.WikiRenderTree(parser,{wiki: wiki});
|
||||||
renderTree.execute({tiddlerTitle: title});
|
renderTree.execute({tiddlerTitle: title});
|
||||||
var text = renderTree.render(type);
|
var text = renderTree.render(type);
|
||||||
fs.writeFile(path.resolve(pathname,title + extension),text,"utf8",function(err) {
|
fs.writeFileSync(path.resolve(pathname,title + extension),text,"utf8");
|
||||||
self.callback(err);
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
return null;
|
return null;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user