mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-22 06:36:29 +01:00
Use PBD::find_files_matching_pattern instead of other variations
This commit is contained in:
parent
1a4fdf0b22
commit
093fb77b88
11 changed files with 26 additions and 107 deletions
|
|
@ -146,39 +146,14 @@ find_files_matching_pattern (vector<string>& result,
|
|||
find_files_matching_pattern (result, paths, tmp);
|
||||
}
|
||||
|
||||
void
|
||||
find_matching_files_in_directory (const std::string& directory,
|
||||
const Glib::PatternSpec& pattern,
|
||||
vector<std::string>& result)
|
||||
{
|
||||
find_files_matching_pattern (result, directory, pattern);
|
||||
}
|
||||
|
||||
void
|
||||
find_matching_files_in_directories (const vector<std::string>& paths,
|
||||
const Glib::PatternSpec& pattern,
|
||||
vector<std::string>& result)
|
||||
{
|
||||
find_files_matching_pattern (result, paths, pattern);
|
||||
}
|
||||
|
||||
void
|
||||
find_matching_files_in_search_path (const Searchpath& search_path,
|
||||
const Glib::PatternSpec& pattern,
|
||||
vector<std::string>& result)
|
||||
{
|
||||
find_files_matching_pattern (result, search_path, pattern);
|
||||
}
|
||||
|
||||
bool
|
||||
find_file_in_search_path(const Searchpath& search_path,
|
||||
const string& filename,
|
||||
std::string& result)
|
||||
{
|
||||
vector<std::string> tmp;
|
||||
Glib::PatternSpec tmp_pattern(filename);
|
||||
|
||||
find_matching_files_in_search_path (search_path, tmp_pattern, tmp);
|
||||
find_files_matching_pattern (tmp, search_path, filename);
|
||||
|
||||
if (tmp.size() == 0)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue