I am trying to understand your code, because there are 3 options: a) you want a 
file listing; b) you want a folder listing; c) you want A and B. In every 
folder (with the exception of the root folder) two files exists that are actual 
are not files, that is "." and "..". So far i can tell, you are trying to acess 
these objects also. So you must add a extra criteria to only access files or 
folders (or both).

Reply via email to