rvm 1.08
|
Retrieve a list of files in a subdirectory that match a given wildcard filename. More...
#include <fs.h>
Public Types | |
typedef std::vector< std::string > | type |
Public Member Functions | |
subdirectory () | |
C'tor. | |
subdirectory (const subdirectory &a_class) | |
C'tor. | |
subdirectory (const std::string a_path, const std::string a_filter="*") | |
C'or. | |
~subdirectory () | |
D'tor. | |
void | assign (const subdirectory &a_class) |
Assign the contents of a given subdirectory to this subdirectory. | |
const type & | path (const std::string a_path, const std::string a_filter="*") |
Return a vector of strings of a list of files in a subdirectory. | |
subdirectory & | operator= (const subdirectory &a_class) |
Retrieve a list of files in a subdirectory that match a given wildcard filename.
Pathnames to the files are not included.
typedef std::vector<std::string> subdirectory::type |
subdirectory::subdirectory | ( | const subdirectory & | a_class | ) |
subdirectory::subdirectory | ( | const std::string | a_path, |
const std::string | a_filter = "*" |
||
) |
void subdirectory::assign | ( | const subdirectory & | a_class | ) |
Assign the contents of a given subdirectory to this subdirectory.
Definition at line 1350 of file fs.cc.
Referenced by operator=(), and subdirectory().
subdirectory & subdirectory::operator= | ( | const subdirectory & | a_class | ) |
const subdirectory::type & subdirectory::path | ( | const std::string | a_path, |
const std::string | a_filter = "*" |
||
) |
Return a vector of strings of a list of files in a subdirectory.
Files in the list do not contain the pathname to the file. Only filenames that match the given wildcard filter will be listed.
Definition at line 1361 of file fs.cc.
References ERROR, filestatus::path(), TRY, and TRY_nomem.
Referenced by catalog_manager::catalog(), configuration_manager::check(), vault_manager::delete_oldest_archive(), catalog_manager::erase(), vault_manager::get_archive_list(), job_archiver::mf_do_chores(), global_parser::parse_link_catalog_dir(), global_parser::parse_log_dir(), directory::path(), rm_recursive(), vault_manager::select(), subdirectory(), test_rvm(), test_subdirectory(), test_subdirectory_sub(), and test_vaulter().