GLib functions for listing directory contents don't include "." or ".." entries
This commit is contained in:
parent
3f776ce7d9
commit
c1ff79e2e6
@ -699,12 +699,6 @@ get_icon_sets ()
|
||||
|
||||
string d = *e;
|
||||
|
||||
/* ignore dotfiles, . and .. */
|
||||
|
||||
if (d.empty() || d[0] == '.') {
|
||||
continue;
|
||||
}
|
||||
|
||||
Glib::ustring path = Glib::build_filename (*s, *e);
|
||||
|
||||
if (Glib::file_test (path, Glib::FILE_TEST_IS_DIR)) {
|
||||
|
Loading…
Reference in New Issue
Block a user