# HG changeset patch # User wycc # Date 1291851960 -28800 # Node ID e030c9d4b79bd134657a034a1afc2221b32c87f1 # Parent 214e1f628d63b5bf560b3ed0ad23155531f31ad0 Display the file which is symbolic link diff -r 214e1f628d63 -r e030c9d4b79b examples/menu/filebrowser.c --- a/examples/menu/filebrowser.c Tue Dec 07 07:52:47 2010 +0800 +++ b/examples/menu/filebrowser.c Thu Dec 09 07:46:00 2010 +0800 @@ -191,7 +191,8 @@ dir = opendir(curdir); while(e = readdir(dir)) { if (strcmp(e->d_name,".")==0) continue; - if (e->d_type == DT_REG) { + printf("e->d_type=%d %d name=%s\n",e->d_type,DT_REG,e->d_name); + if (e->d_type == DT_REG || e->d_type == DT_LNK) { if (data->nFiles < MAX_ENTRY) { f = fileinfo_new(); data->files[data->nFiles] = f;