diff options
Diffstat (limited to 'libutil/src/pathutils.cpp')
-rw-r--r-- | libutil/src/pathutils.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libutil/src/pathutils.cpp b/libutil/src/pathutils.cpp index 7ba7397c..083fe98d 100644 --- a/libutil/src/pathutils.cpp +++ b/libutil/src/pathutils.cpp @@ -65,3 +65,11 @@ QString DirNameFromString(QString string, QString inDir) } return dirName; } + +bool ensurePathExists(QString filenamepath) +{ + QFileInfo a ( filenamepath ); + QDir dir; + return (dir.mkpath ( a.path() )); +} + |