|
std::string | absPath (const std::string &_path) |
| Get the absolute path of a provided path. More...
|
|
void | add_search_path_suffix (const std::string &_suffix) |
| add path sufix to common::SystemPaths More...
|
|
bool | copyDir (const boost::filesystem::path &_source, const boost::filesystem::path &_destination) |
| Copy a directory, overwrite the destination directory if exists. More...
|
|
bool | copyFile (const std::string &_existingFilename, const std::string &_newFilename) |
| Copy a file. More...
|
|
std::string | cwd () |
| Get the current working directory. More...
|
|
bool | exists (const std::string &_path) |
| Returns true if _path is a file or directory. More...
|
|
std::string | find_file (const std::string &_file) |
| search for file in common::SystemPaths More...
|
|
std::string | find_file (const std::string &_file, bool _searchLocalPath) |
| search for file in common::SystemPaths More...
|
|
std::string | find_file_path (const std::string &_file) |
| search for a file in common::SystemPaths More...
|
|
template<typename T > |
std::string | get_sha1 (const T &_buffer) |
| Compute the SHA1 hash of an array of bytes. More...
|
|
const char * | getEnv (const char *_name) |
| Cross platform retrieval of an environment variable. More...
|
|
bool | isDirectory (const std::string &_path) |
| Check if the given path is a directory. More...
|
|
bool | isFile (const std::string &_path) |
| Check if the given path is a file. More...
|
|
void | load () |
| Load the common library. More...
|
|
bool | moveFile (const std::string &_existingFilename, const std::string &_newFilename) |
| Move a file. More...
|
|
void | replaceAll (std::string &_result, const std::string &_orig, const std::string &_key, const std::string &_replacement) |
| Replace all occurances of _key with _replacement. More...
|
|
std::string | replaceAll (const std::string &_orig, const std::string &_key, const std::string &_replacement) |
| Replace all occurances of _key with _replacement. More...
|
|
std::vector< std::string > | split (const std::string &_str, const std::string &_delim) |
| Splits a string into tokens. More...
|
|
std::string | unique_file_path (const std::string &_pathAndName, const std::string &_extension) |
| Generates a path for a file which doesn't collide with existing files, by appending numbers to it (i.e. More...
|
|