write myself a note on why symlinks are disabled in menu

SVN revision: 81519
This commit is contained in:
Mike Blumenkrantz 2012-12-21 08:40:42 +00:00
parent b9d76af697
commit 1c2d6e4aea
1 changed files with 1 additions and 0 deletions

View File

@ -110,6 +110,7 @@ _e_mod_menu_populate_filter(void *data __UNUSED__, Eio_File *handler __UNUSED__,
if (fileman_config->view.menu_shows_files)
return (info->path[info->name_start] != '.');
if (lstat(info->path, &st)) return EINA_FALSE;
/* don't show links to prevent infinite submenus */
return (info->path[info->name_start] != '.') && (info->type == EINA_FILE_DIR) && (!S_ISLNK(st.st_mode));
}