mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-25 01:20:30 +00:00
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
This commit is contained in:
parent
a51f62bc40
commit
7b251df989
@ -67,7 +67,7 @@ FileSystemAdaptor.prototype.getTiddlerFileInfo = function(tiddler,callback) {
|
|||||||
fileInfo.hasMetaFile = (fileInfo.type !== "application/x-tiddler");
|
fileInfo.hasMetaFile = (fileInfo.type !== "application/x-tiddler");
|
||||||
// Generate the base filepath and ensure the directories exist
|
// Generate the base filepath and ensure the directories exist
|
||||||
var baseFilepath = path.resolve($tw.boot.wikiTiddlersPath,this.generateTiddlerBaseFilepath(title));
|
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
|
// Start by getting a list of the existing files in the directory
|
||||||
fs.readdir(path.dirname(baseFilepath),function(err,files) {
|
fs.readdir(path.dirname(baseFilepath),function(err,files) {
|
||||||
if(err) {
|
if(err) {
|
||||||
|
Loading…
Reference in New Issue
Block a user