From 8c554a6ea865a948437e600eebfbb0931c52e725 Mon Sep 17 00:00:00 2001 From: Cedric BAIL Date: Tue, 2 Nov 2010 17:08:49 +0000 Subject: [PATCH] * ephoto: use eio_file_stat_ls. SVN revision: 54107 --- src/bin/ephoto_thumb_browser.c | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/src/bin/ephoto_thumb_browser.c b/src/bin/ephoto_thumb_browser.c index 3fa1a52..4681b20 100644 --- a/src/bin/ephoto_thumb_browser.c +++ b/src/bin/ephoto_thumb_browser.c @@ -290,12 +290,6 @@ _ephoto_populate_filter(void *data __UNUSED__, const Eina_File_Direct_Info *info if (bname[0] == '.') return EINA_FALSE; if (info->type == EINA_FILE_DIR) return EINA_TRUE; - if (info->type == EINA_FILE_UNKNOWN) - { - struct stat st; - if ((stat(info->path, &st) == 0) && (S_ISDIR(st.st_mode))) - return EINA_TRUE; - } return _ephoto_eina_file_direct_info_image_useful(info); } @@ -348,12 +342,12 @@ _ephoto_populate_entries(Ephoto_Thumb_Browser *tb) elm_fileselector_entry_path_set(tb->fsel, tb->ephoto->config->directory); edje_object_signal_emit(tb->edje, "populate,start", "ephoto"); - tb->ls = eio_file_direct_ls(tb->ephoto->config->directory, - _ephoto_populate_filter, - _ephoto_populate_main, - _ephoto_populate_end, - _ephoto_populate_error, - tb); + tb->ls = eio_file_stat_ls(tb->ephoto->config->directory, + _ephoto_populate_filter, + _ephoto_populate_main, + _ephoto_populate_end, + _ephoto_populate_error, + tb); } static void