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