diff --git a/plugins/tiddlywiki/filesystem/filesystemadaptor.js b/plugins/tiddlywiki/filesystem/filesystemadaptor.js index f270b81df..00dfc39e1 100644 --- a/plugins/tiddlywiki/filesystem/filesystemadaptor.js +++ b/plugins/tiddlywiki/filesystem/filesystemadaptor.js @@ -67,7 +67,7 @@ FileSystemAdaptor.prototype.getTiddlerFileInfo = function(tiddler,callback) { fileInfo.hasMetaFile = (fileInfo.type !== "application/x-tiddler"); // Generate the base filepath and ensure the directories exist var baseFilepath = path.resolve($tw.boot.wikiTiddlersPath,this.generateTiddlerBaseFilepath(title)); - $tw.utils.createDirectory(baseFilepath); + $tw.utils.createFileDirectories(baseFilepath); // Start by getting a list of the existing files in the directory fs.readdir(path.dirname(baseFilepath),function(err,files) { if(err) {