diff options
author | Tim Mayberry <mojofunk@gmail.com> | 2014-06-22 10:40:28 +1000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2014-06-25 12:40:10 -0400 |
commit | ab6837665f3973a793ddefb215887faa487cf13c (patch) | |
tree | 6bf338ef9f0f6cc98673886dd1a3157c7bcccb96 /libs/pbd/file_utils.cc | |
parent | e6c4b0e9e4c6a43ed316325aa789980de7f89269 (diff) |
Add some debug output in file_utils.cc
Diffstat (limited to 'libs/pbd/file_utils.cc')
-rw-r--r-- | libs/pbd/file_utils.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libs/pbd/file_utils.cc b/libs/pbd/file_utils.cc index 9d12502bfd..f0c4433376 100644 --- a/libs/pbd/file_utils.cc +++ b/libs/pbd/file_utils.cc @@ -85,6 +85,9 @@ get_directory_contents (const std::string& directory_path, bool is_dir = Glib::file_test (fullpath, Glib::FILE_TEST_IS_DIR); if (is_dir && recurse) { + DEBUG_TRACE (DEBUG::FileUtils, + string_compose("Descending into directory: %1\n", + fullpath)); get_directory_contents (fullpath, result, files_only, recurse); } @@ -205,6 +208,9 @@ find_files_matching_regex (vector<string>& result, return; } + DEBUG_TRACE (DEBUG::FileUtils, + string_compose("Matching files using regexp: %1\n", regexp)); + find_files_matching_filter (result, paths, regexp_filter, &compiled_pattern, true, true, false); @@ -224,6 +230,8 @@ find_files_matching_filter (vector<string>& result, for (vector<string>::const_iterator i = paths.begin(); i != paths.end(); ++i) { string expanded_path = path_expand (*i); + DEBUG_TRACE (DEBUG::FileUtils, + string_compose("Find files in expanded path: %1\n", expanded_path)); get_directory_contents (expanded_path, all_files, true, recurse); } @@ -239,6 +247,9 @@ find_files_matching_filter (vector<string>& result, search_str = filename; } + DEBUG_TRACE (DEBUG::FileUtils, + string_compose("Filter using string: %1\n", search_str)); + if (!filter(search_str, arg)) { continue; } |