Mercurial > MadButterfly
changeset 1121:e030c9d4b79b
Display the file which is symbolic link
author | wycc |
---|---|
date | Thu, 09 Dec 2010 07:46:00 +0800 |
parents | 214e1f628d63 |
children | 3d438daea48c |
files | examples/menu/filebrowser.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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;