
Indentation fixed to 2 spaces per tab. Braces set to Stroustrup style. Lines reflow at 80 characters. One-line method bodies are on the same line as the signature. Space always after `//`. No indentation on preprocessor macros. Includes are sorted lexicographically. If you don't want to see this commit on blames, use the hidden whitespace option on GitHub, or use `-w` in git-blame.
23 lines
335 B
C++
23 lines
335 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();
|
|
}
|
|
|
|
bool exists(QString p_path)
|
|
{
|
|
QFile file(p_path);
|
|
|
|
return file.exists();
|
|
}
|