23 const filesystem::path& path,
const ExtensionList& exts) ->
bool
25 std::string regexExpression =
".*\\.(";
26 std::size_t count = 0;
27 for (
const auto& e : exts) {
28 regexExpression.append(e);
29 if (++count < exts.size()) {
30 regexExpression.append(
"|");
33 regexExpression.append(
")$");
35 const std::regex extensions{regexExpression, std::regex::icase};
36 return std::regex_match(path.extension().string(), extensions);
45 return path.filename().string()[0] ==
'.';
auto FileExtensionFilter(const filesystem::path &path, const ExtensionList &exts) -> bool
std::vector< std::string > ExtensionList
auto UnixHiddenFileFilter(const filesystem::path &path) -> bool
Volume Cartographer library
constexpr auto IsFileType
constexpr auto IsUnixHiddenFile