While believing Glenn is almost always a good idea, this should be the better approach:

 Code:
  if not (getfileattr($File) & 16)					    ; if file is not a dir.


works as well as the other .. so I need to dig a bit into the code I guess:


Attachments
351.png
Description:


_________________________