summaryrefslogtreecommitdiff
path: root/libs/pbd/file_utils.cc
diff options
context:
space:
mode:
authorTim Mayberry <mojofunk@gmail.com>2014-06-17 21:41:29 +1000
committerTim Mayberry <mojofunk@gmail.com>2014-06-17 21:41:29 +1000
commit547689a0552661108806a4028960f32d1b20adf8 (patch)
tree0c1174b469b7351a4ef6515218411cffffa0a180 /libs/pbd/file_utils.cc
parentcb6934a189ce3940cdfa05dd5e302a8006afa83f (diff)
Replace all use of PathScanner with equivalent functions from pbd/file_utils.h
Diffstat (limited to 'libs/pbd/file_utils.cc')
-rw-r--r--libs/pbd/file_utils.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/libs/pbd/file_utils.cc b/libs/pbd/file_utils.cc
index 7e58f0fed5..dba185ba79 100644
--- a/libs/pbd/file_utils.cc
+++ b/libs/pbd/file_utils.cc
@@ -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);