HOG2
Macros | Functions
FileUtil.cpp File Reference
#include "FileUtil.h"
#include <sys/stat.h>
Include dependency graph for FileUtil.cpp:

Go to the source code of this file.

Macros

#define S_ISDIR(mode)   (((mode) & S_IFMT) == S_IFDIR)
 
#define S_ISREG(mode)   (((mode) & S_IFMT) == S_IFREG)
 

Functions

bool FileExists (const std::string &filename)
 Check if a file exists. More...
 

Macro Definition Documentation

◆ S_ISDIR

#define S_ISDIR (   mode)    (((mode) & S_IFMT) == S_IFDIR)

Definition at line 19 of file FileUtil.cpp.

◆ S_ISREG

#define S_ISREG (   mode)    (((mode) & S_IFMT) == S_IFREG)

Definition at line 22 of file FileUtil.cpp.

Function Documentation

◆ FileExists()

bool FileExists ( const std::string &  filename)

Check if a file exists.

See also
https://e-penguiner.com/cpp-function-check-file-exist/

Definition at line 29 of file FileUtil.cpp.

References S_ISREG.