diff --git a/src/util/PathUtil.cpp b/src/util/PathUtil.cpp index f84556d9..ebca9598 100644 --- a/src/util/PathUtil.cpp +++ b/src/util/PathUtil.cpp @@ -198,7 +198,7 @@ auto Util::getTmpDirSubfolder(const fs::path& subfolder) -> fs::path { } auto Util::ensureFolderExists(const fs::path& p) -> fs::path { - if (!fs::create_directories(p)) { + if (!fs::exists(p) && !fs::create_directories(p)) { Util::execInUiThread([=]() { string msg = FS(_F("Could not create folder: {1}") % p.string()); g_warning("%s", msg.c_str());