Hi Kunal,
What is the second argument to the sys_dirlist function? From the examples I see that it can be either 0 or 1.
Quick look at the source code reveals the second argument can be: 0 show directories 1 show regular files 2 show symbolic links (non windows platforms) 3 show all Patrick