1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-09-07 13:28:01 +00:00

Fix some Node.js cross-platform compatibility issues

Thanks to http://shapeshed.com/writing-cross-platform-node/

Surprising that file path format is pretty much the only issue.
This commit is contained in:
Jermolene
2014-03-31 17:17:36 +01:00
parent 0d0679de1b
commit 6307293469
3 changed files with 6 additions and 6 deletions

View File

@@ -88,7 +88,7 @@ FileSystemAdaptor.prototype.getTiddlerFileInfo = function(tiddler,callback) {
}
// Assemble the new fileInfo
fileInfo = {};
fileInfo.filepath = $tw.boot.wikiTiddlersPath + "/" + self.generateTiddlerFilename(title,extension,files);
fileInfo.filepath = $tw.boot.wikiTiddlersPath + path.sep + self.generateTiddlerFilename(title,extension,files);
fileInfo.type = typeInfo.fileType || tiddler.fields.type;
fileInfo.hasMetaFile = typeInfo.hasMetaFile;
// Save the newly created fileInfo