aboutsummaryrefslogtreecommitdiff
path: root/file_functions.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'file_functions.cpp')
-rw-r--r--file_functions.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/file_functions.cpp b/file_functions.cpp
index e69de29b..a191d67f 100644
--- a/file_functions.cpp
+++ b/file_functions.cpp
@@ -0,0 +1,10 @@
+#include <QFileInfo>
+
+#include "file_functions.h"
+
+bool file_exists(QString file_path)
+{
+ QFileInfo check_file(file_path);
+
+ return check_file.exists() && check_file.isFile();
+}