diff options
Diffstat (limited to 'file_functions.cpp')
| -rw-r--r-- | file_functions.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/file_functions.cpp b/file_functions.cpp index a191d67..bc9185f 100644 --- a/file_functions.cpp +++ b/file_functions.cpp @@ -1,4 +1,5 @@ #include <QFileInfo> +#include <QDir> #include "file_functions.h" @@ -8,3 +9,10 @@ bool file_exists(QString file_path) return check_file.exists() && check_file.isFile(); } + +bool dir_exists(QString dir_path) +{ + QDir check_dir(dir_path); + + return check_dir.exists(); +} |
