fpreaddir -> http://www.freepascal.org/docs-html/rtl/baseunix/fpreaddir.html dirent record structure -> http://www.freepascal.org/docs-html/rtl/baseunix/dirent.html How do I know if the readed entry is a subdir? Rainer