This line of code returns files AND directories sFileArray = RDir(sPathThumbs, "*", gb.File) Any ideas would be welcome Gambas 3.9.2 Kubuntu 16.10 -- View this message in context: http://gambas.8142.n7.nabble.com/rdir-returns-unwanted-directories-tp59204.html Sent from the gambas-user mailing list archive at Nabble.com.