From 4dceb1b07227445b88a09cc1b88bfc5878a322bb Mon Sep 17 00:00:00 2001 From: Aaron Seigo Date: Sun, 14 Dec 2014 13:24:13 +0100 Subject: mkpath instead of mkdir, as we may be making multiple dirs --- common/storage_unqlite.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/storage_unqlite.cpp b/common/storage_unqlite.cpp index 2bdfc2c..67f910b 100644 --- a/common/storage_unqlite.cpp +++ b/common/storage_unqlite.cpp @@ -42,7 +42,7 @@ Storage::Private::Private(const QString &s, const QString &n, AccessMode m) { const QString fullPath(storageRoot + s_unqliteDir + name); QDir dir; - dir.mkdir(storageRoot + s_unqliteDir); + dir.mkpath(storageRoot + s_unqliteDir); //create file int openFlags = UNQLITE_OPEN_CREATE; -- cgit v1.2.3