#include <filesystem.hpp>
Public Member Functions | |
blacklist_pattern_list () | |
blacklist_pattern_list (const std::vector< std::string > &file_patterns, const std::vector< std::string > &directory_patterns) | |
bool | match_file (const std::string &name) const |
bool | match_dir (const std::string &name) const |
void | add_file_pattern (const std::string &pattern) |
void | add_directory_pattern (const std::string &pattern) |
void | remove_blacklisted_files_and_dirs (std::vector< std::string > &files, std::vector< std::string > &directories) const |
Private Attributes | |
std::vector< std::string > | file_patterns_ |
std::vector< std::string > | directory_patterns_ |
Definition at line 84 of file filesystem.hpp.
|
inline |
Definition at line 87 of file filesystem.hpp.
|
inline |
Definition at line 90 of file filesystem.hpp.
|
inline |
Definition at line 103 of file filesystem.hpp.
References directory_patterns_.
Referenced by read_ignore_patterns().
|
inline |
Definition at line 98 of file filesystem.hpp.
References file_patterns_.
Referenced by read_ignore_patterns().
bool filesystem::blacklist_pattern_list::match_dir | ( | const std::string & | name | ) | const |
Definition at line 116 of file filesystem_common.cpp.
References utils::wildcard_string_match().
Referenced by archive_dir().
bool filesystem::blacklist_pattern_list::match_file | ( | const std::string & | name | ) | const |
Definition at line 110 of file filesystem_common.cpp.
References utils::wildcard_string_match().
Referenced by archive_dir(), and filesystem::is_legal_file().
void filesystem::blacklist_pattern_list::remove_blacklisted_files_and_dirs | ( | std::vector< std::string > & | files, |
std::vector< std::string > & | directories | ||
) | const |
Definition at line 104 of file filesystem_common.cpp.
References utils::erase_if().
Referenced by lua_fileops::intf_read_file().
|
private |
Definition at line 112 of file filesystem.hpp.
Referenced by add_directory_pattern().
|
private |
Definition at line 111 of file filesystem.hpp.
Referenced by add_file_pattern().