Yes it is possible to determine within KiX is it is a file or a folder. There are several FAQs written, but the one on DIR() covers the topic for sure.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.