#include <UtilFile.hpp>
Public Member Functions | |
UtilFile () | |
Default Constructor. | |
virtual | ~UtilFile () |
Destructor. | |
Static Public Member Functions | |
static bool | createDirectory (std::string const &FileName) |
Create a directory. | |
static void | relativeToAbsolute (std::string &FilePath) |
create a directory | |
static bool | touch (std::string const &FilePath) |
Relative to absolute path. | |
static bool | touchRecursive (std::string const &FilePath, bool DoRecursive=true) |
Recursively touch a file / directory. |
This is an interface for classes wishing to receive socket events
Definition at line 60 of file UtilFile.hpp.
bool UtilFile::createDirectory | ( | std::string const & | FileName | ) | [static] |
Create a directory.
FileName | The directory to create |
Definition at line 99 of file UtilFile.cpp.
Referenced by touch().
void UtilFile::relativeToAbsolute | ( | std::string & | FilePath | ) | [static] |
create a directory
Change a file path from relative to absolute.
FilePath | The path |
Definition at line 114 of file UtilFile.cpp.
References DIRSTR.
bool UtilFile::touch | ( | std::string const & | FilePath | ) | [static] |
Relative to absolute path.
Touch a file.
Touch a file / directory
FilePath | The file / directory to touch |
Definition at line 129 of file UtilFile.cpp.
References createDirectory(), and DIRCHAR.
Referenced by touchRecursive().
bool UtilFile::touchRecursive | ( | std::string const & | FilePath, | |
bool | DoRecursive = true | |||
) | [static] |
Recursively touch a file / directory.
Recursively touch a file.
FilePath | The file to touch | |
DoRecursive | Do the operation recursively if true |
Definition at line 149 of file UtilFile.cpp.