From 96126da22054657d649fca4501647321500176f4 Mon Sep 17 00:00:00 2001 From: Stefan Weng Date: Tue, 28 Jul 2020 22:24:16 +0200 Subject: [PATCH] Create also non-existing parent directories --- asteroidsyncservice/watch.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/asteroidsyncservice/watch.cpp b/asteroidsyncservice/watch.cpp index e0026e2..f12f6c3 100644 --- a/asteroidsyncservice/watch.cpp +++ b/asteroidsyncservice/watch.cpp @@ -177,7 +177,7 @@ void Watch::setScreenshotFileInfo(const QString fileInfo) bool Watch::createDir(const QDir path) { if(!path.exists()) { - return path.mkdir(path.path()); + return path.mkpath(path.path()); } else { return true; }