These functions and macros help process files and directories.
Functions | |
bool | fileAccessCheck (const char *fname, std::ios::openmode mode=std::ios::in) |
bool | fileAccessCheck (const std::string &fname, std::ios::openmode mode=std::ios::in) |
int | makeDir (const char *path, unsigned mode) |
int | makeDir (const std::string &path, unsigned mode) |
|
inline |
Returns true if the file exists. Only readability is verified unless the user inputs the openmode of interest.
[in] | fname | Name of the file to check |
[in] | mode | Mode of access to check (default is readable, std::ios::in) |
Definition at line 151 of file FileUtils.hpp.
|
inline |
Definition at line 158 of file FileUtils.hpp.
|
inline |
makeDir that takes a char* for an argument.
path | the full path of the directory you want created |
mode | the permission of the new directory (like 0755) |
Definition at line 134 of file FileUtils.hpp.
|
inline |
Creates a hierarchy of directories rather than just one dir. This intentionally doesn't check the mkdir return codes because there is no difference between return codes for directories that already exist and error creating new ones.
path | the full path of the directory you want created |
mode | the permission of the new directory (like 0755) |
Definition at line 106 of file FileUtils.hpp.