If your application is going to run only on unix/linux then i think you could just use shell's find.