atrooney-online-2/file_functions.cpp
Cerapter d314b8dd07 Moved includes out of the CPP files into the header files.
Reimplementation of `30a87d23c9c63bed072b3460e7482075dc530b2c` from the
old origin.
2018-08-19 09:37:34 +02:00

16 lines
255 B
C++

#include "file_functions.h"
bool file_exists(QString file_path)
{
QFileInfo check_file(file_path);
return check_file.exists() && check_file.isFile();
}
bool dir_exists(QString dir_path)
{
QDir check_dir(dir_path);
return check_dir.exists();
}