19 lines
293 B
C++
19 lines
293 B
C++
#include <QFileInfo>
|
|
#include <QDir>
|
|
|
|
#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();
|
|
}
|