> Other options include ftw() from POSIX, though it's not very good, and fts > from BSD. yet another option is ast's ftwalk() library function: http://www2.research.att.com/~gsf/man/man3/ftwalk.html warning: that man page is pretty intimidating :)