diff options
Diffstat (limited to 'file_functions.cpp')
| -rw-r--r-- | file_functions.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/file_functions.cpp b/file_functions.cpp index bc9185f2..f93ee15d 100644 --- a/file_functions.cpp +++ b/file_functions.cpp @@ -1,6 +1,3 @@ -#include <QFileInfo> -#include <QDir> - #include "file_functions.h" bool file_exists(QString file_path) @@ -16,3 +13,9 @@ bool dir_exists(QString dir_path) return check_dir.exists(); } + +bool exists(QString p_path) { + QFile file(p_path); + + return file.exists(); +} |
