Typedefs | |
typedef boost::filesystem::filesystem_error | PathException |
Functions | |
std::vector< std::string > | Find (const std::string &path, const std::string &expression, int max_depth=-1) |
std::vector< std::string > | load_all_files (const std::string &path, std::string &directory) |
boost::filesystem::path | NaiveUncomplete (boost::filesystem::path const path, boost::filesystem::path const base) |
typedef boost::filesystem::filesystem_error swri_system_util::PathException |
Definition at line 45 of file file_util.h.
std::vector< std::string > swri_system_util::Find | ( | const std::string & | path, |
const std::string & | expression, | ||
int | max_depth = -1 |
||
) |
Return the list of files within a directory that match a regular expression.
[in] | path | Path to search from |
[in] | expression | Regular expression for the filename. |
[in] | max_depth | Max depth to search for files. Use -1 for unlimited depth. |
Definition at line 162 of file file_util.cpp.
std::vector< std::string > swri_system_util::load_all_files | ( | const std::string & | path, |
std::string & | directory | ||
) |
Return a list of all file names within a directory (handles wildcard character "*").
[in] | path | The absolute path containing the files (Add wildcard to filename). |
Definition at line 114 of file file_util.cpp.
boost::filesystem::path swri_system_util::NaiveUncomplete | ( | boost::filesystem::path const | path, |
boost::filesystem::path const | base | ||
) |
Generate a relative file path between two absolute paths.
[in] | path | The absolute path to convert to relative. |
[in] | base | The base path. |
Definition at line 38 of file file_util.cpp.