Change PBD::get_files_in_directory to return full paths in result

get_files_in_directory uses get_directory_contents internally now
This commit is contained in:
Tim Mayberry 2014-06-19 12:33:14 +10:00 committed by Paul Davis
parent 1e442feb53
commit 4ffa970135
2 changed files with 7 additions and 24 deletions

View file

@ -696,13 +696,8 @@ get_icon_sets ()
get_files_in_directory (*s, entries);
for (vector<string>::iterator e = entries.begin(); e != entries.end(); ++e) {
string d = *e;
Glib::ustring path = Glib::build_filename (*s, *e);
if (Glib::file_test (path, Glib::FILE_TEST_IS_DIR)) {
r.push_back (Glib::filename_to_utf8 (*e));
if (Glib::file_test (*e, Glib::FILE_TEST_IS_DIR)) {
r.push_back (Glib::filename_to_utf8 (Glib::path_get_basename(*e)));
}
}
}