charon-core
0.3.1
|
Declaration of FileTool methods. More...
Go to the source code of this file.
Namespaces | |
FileTool | |
Useful functions when working with files. | |
Functions | |
int charon_core_DLL_PUBLIC | FileTool::changeDir (const std::string &dir) |
Change current working directory. More... | |
bool charon_core_DLL_PUBLIC | FileTool::exists (const std::string &file) |
Check if file exists. More... | |
std::string charon_core_DLL_PUBLIC | FileTool::getCurrentDir () |
Get current working directory. More... | |
std::vector< std::string > charon_core_DLL_PUBLIC | FileTool::getFilesWithSuffix (std::string suffix) |
Search files with given suffix. More... | |
int charon_core_DLL_PUBLIC | FileTool::makeDir (const std::string &dir) |
Create a new directory using MODE 711 (in unix) More... | |
int charon_core_DLL_PUBLIC | FileTool::makePath (std::string &path) |
This function creates all directories contained in path provided they do not already exist. More... | |
std::string charon_core_DLL_PUBLIC | FileTool::readFile (const std::string &fName) |
read file content into std::string More... | |
int charon_core_DLL_PUBLIC | FileTool::remove (const std::string &file) |
Remove file. More... | |
int charon_core_DLL_PUBLIC | FileTool::rename (const std::string &oldFile, const std::string &newFile) |
Rename file. More... | |
void charon_core_DLL_PUBLIC | FileTool::slashConvert (std::string &src) |
Convert unix to windows paths and reversed. More... | |
Variables | |
const char charon_core_DLL_PUBLIC | FileTool::slash = '\\' |
Slash of current operating system ("/" or "\") | |