mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-21 14:16:31 +01:00
Replace all use of PathScanner with equivalent functions from pbd/file_utils.h
This commit is contained in:
parent
576c81d50e
commit
10a6fe553e
10 changed files with 37 additions and 72 deletions
|
|
@ -58,7 +58,6 @@
|
|||
#include "pbd/file_utils.h"
|
||||
#include "pbd/debug.h"
|
||||
#include "pbd/error.h"
|
||||
#include "pbd/pathscanner.h"
|
||||
#include "pbd/pathexpand.h"
|
||||
#include "pbd/stl_delete.h"
|
||||
|
||||
|
|
@ -354,8 +353,8 @@ bool accept_all_files (string const &, void *)
|
|||
void
|
||||
copy_files(const std::string & from_path, const std::string & to_dir)
|
||||
{
|
||||
PathScanner scanner;
|
||||
vector<string> files = scanner (from_path, accept_all_files, 0, true, false);
|
||||
vector<string> files;
|
||||
find_files_matching_filter (files, from_path, accept_all_files, 0, true, false);
|
||||
|
||||
for (vector<string>::iterator i = files.begin(); i != files.end(); ++i) {
|
||||
std::string from = Glib::build_filename (from_path, *i);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue