From: "Andrius C." Date: 2011-09-07T22:43:53+09:00 Subject: Re: Recursive file listening? Sorry for bumping old thread, but as it was first result for me in google I'd like to add that Dir.glob('**/*.rb') won't actually list files recursively. It will only list files in current directory and 1 directory deep. So if you have files: file first_level/file first_level/second_level/file It will return only "file" and "first_level/file", but will not return "first_level/second_level/file". To actually list files recursively you can use little known "find" lib from stdlib: http://ruby-doc.org/stdlib/libdoc/find/rdoc/classes/Find.html. -- Posted via http://www.ruby-forum.com/.