mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 23:35:03 +01:00
recursive regexp file search.
This commit is contained in:
parent
a173c74f2d
commit
cf7d5dbc2d
2 changed files with 5 additions and 3 deletions
|
|
@ -225,7 +225,8 @@ regexp_filter (const string& str, void *arg)
|
||||||
void
|
void
|
||||||
find_files_matching_regex (vector<string>& result,
|
find_files_matching_regex (vector<string>& result,
|
||||||
const Searchpath& paths,
|
const Searchpath& paths,
|
||||||
const std::string& regexp)
|
const std::string& regexp,
|
||||||
|
bool recurse)
|
||||||
{
|
{
|
||||||
int err;
|
int err;
|
||||||
char msg[256];
|
char msg[256];
|
||||||
|
|
@ -250,7 +251,7 @@ find_files_matching_regex (vector<string>& result,
|
||||||
|
|
||||||
find_files_matching_filter (result, paths,
|
find_files_matching_filter (result, paths,
|
||||||
regexp_filter, &compiled_pattern,
|
regexp_filter, &compiled_pattern,
|
||||||
true, true, false);
|
true, true, recurse);
|
||||||
|
|
||||||
regfree (&compiled_pattern);
|
regfree (&compiled_pattern);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -117,7 +117,8 @@ find_file (const Searchpath& search_path,
|
||||||
LIBPBD_API void
|
LIBPBD_API void
|
||||||
find_files_matching_regex (std::vector<std::string>& results,
|
find_files_matching_regex (std::vector<std::string>& results,
|
||||||
const Searchpath& paths,
|
const Searchpath& paths,
|
||||||
const std::string& regexp);
|
const std::string& regexp,
|
||||||
|
bool recurse = false);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Find paths in a Searchpath that match a supplied filter(functor)
|
* Find paths in a Searchpath that match a supplied filter(functor)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue