summaryrefslogtreecommitdiffstats
path: root/common/storage_unqlite.cpp
diff options
context:
space:
mode:
authorAaron Seigo <aseigo@kde.org>2014-12-14 13:24:13 +0100
committerAaron Seigo <aseigo@kde.org>2014-12-14 13:24:13 +0100
commit4dceb1b07227445b88a09cc1b88bfc5878a322bb (patch)
tree16679c8762296d328cbdd40982c4498fe606fde9 /common/storage_unqlite.cpp
parent08b975293c356f7a39ca28aa5bc243fe3281d361 (diff)
downloadsink-4dceb1b07227445b88a09cc1b88bfc5878a322bb.tar.gz
sink-4dceb1b07227445b88a09cc1b88bfc5878a322bb.zip
mkpath instead of mkdir, as we may be making multiple dirs
Diffstat (limited to 'common/storage_unqlite.cpp')
-rw-r--r--common/storage_unqlite.cpp2
1 files changed, 1 insertions, 1 deletions
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)
42{ 42{
43 const QString fullPath(storageRoot + s_unqliteDir + name); 43 const QString fullPath(storageRoot + s_unqliteDir + name);
44 QDir dir; 44 QDir dir;
45 dir.mkdir(storageRoot + s_unqliteDir); 45 dir.mkpath(storageRoot + s_unqliteDir);
46 46
47 //create file 47 //create file
48 int openFlags = UNQLITE_OPEN_CREATE; 48 int openFlags = UNQLITE_OPEN_CREATE;