forked from enlightenment/enlightenment
fileman menu no longer shows symlinks unless the option to show files in menu is enabled
SVN revision: 76734
This commit is contained in:
parent
4036e9a3c5
commit
894054e542
|
@ -106,10 +106,12 @@ _e_mod_menu_cleanup_cb(void *obj)
|
|||
static Eina_Bool
|
||||
_e_mod_menu_populate_filter(void *data __UNUSED__, Eio_File *handler __UNUSED__, const Eina_File_Direct_Info *info)
|
||||
{
|
||||
struct stat st;
|
||||
/* don't show .dotfiles */
|
||||
if (fileman_config->view.menu_shows_files)
|
||||
return (info->path[info->name_start] != '.');
|
||||
return (info->path[info->name_start] != '.') && (info->type == EINA_FILE_DIR);
|
||||
if (lstat(info->path, &st)) return EINA_FALSE;
|
||||
return (info->path[info->name_start] != '.') && (info->type == EINA_FILE_DIR) && (!S_ISLNK(st.st_mode));
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in New Issue