diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2014-12-14 19:11:13 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2014-12-14 19:14:42 +0100 |
commit | 447f24cb93e05f40c3ebf94daf47c7e518ab15d9 (patch) | |
tree | 33aeb0909accb2e79201d7705397cba11f875d62 /common/storage_lmdb.cpp | |
parent | 11e81350b50e4a1b77789870e6af90a8d3144322 (diff) | |
download | sink-447f24cb93e05f40c3ebf94daf47c7e518ab15d9.tar.gz sink-447f24cb93e05f40c3ebf94daf47c7e518ab15d9.zip |
Create base directory if necessary.
Diffstat (limited to 'common/storage_lmdb.cpp')
-rw-r--r-- | common/storage_lmdb.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/common/storage_lmdb.cpp b/common/storage_lmdb.cpp index d9a501f..2c4410b 100644 --- a/common/storage_lmdb.cpp +++ b/common/storage_lmdb.cpp | |||
@@ -38,6 +38,7 @@ Storage::Private::Private(const QString &s, const QString &n, AccessMode m) | |||
38 | { | 38 | { |
39 | const QString fullPath(storageRoot + '/' + name); | 39 | const QString fullPath(storageRoot + '/' + name); |
40 | QDir dir; | 40 | QDir dir; |
41 | dir.mkdir(storageRoot); | ||
41 | dir.mkdir(fullPath); | 42 | dir.mkdir(fullPath); |
42 | 43 | ||
43 | //create file | 44 | //create file |