From 7b251df9892632c7d5610ea1034602688ae3b704 Mon Sep 17 00:00:00 2001 From: Jermolene Date: Sun, 12 Feb 2017 11:15:23 +0000 Subject: [PATCH] Filesystemadaptor: Fix problem with creation of unneeded directories @pmario this fixes the problem reported in https://github.com/Jermolene/TiddlyWiki5/commit/3708f6c8e4f4bf2ea1cb10b0 fa685888485f788a#commitcomment-20847981 --- plugins/tiddlywiki/filesystem/filesystemadaptor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {