diff options
-rw-r--r-- | qthelper.cpp | 7 | ||||
-rw-r--r-- | qthelperfromc.h | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/qthelper.cpp b/qthelper.cpp index 12ce2cb3c..e25be9c26 100644 --- a/qthelper.cpp +++ b/qthelper.cpp @@ -1073,3 +1073,10 @@ extern "C" void updateWindowTitle() { MainWindow::instance()->setTitle(); } + +extern "C" void subsurface_mkdir(const char *dir) +{ + QDir directory; + if (!directory.mkpath(QString(dir))) + qDebug() << "failed to create path" << dir; +} diff --git a/qthelperfromc.h b/qthelperfromc.h index 900085fa4..c9e400ff8 100644 --- a/qthelperfromc.h +++ b/qthelperfromc.h @@ -5,5 +5,6 @@ bool getProxyString(char **buffer); bool canReachCloudServer(); void updateWindowTitle(); bool isCloudUrl(const char *filename); +void subsurface_mkdir(const char *dir); #endif // QTHELPERFROMC_H |