From: Adam Prescott Date: 2011-09-07T22:51:56+09:00 Subject: Re: Recursive file listening? --000e0ce0097435491504ac5a3f05 Content-Type: text/plain; charset=UTF-8 On Wed, Sep 7, 2011 at 2:43 PM, Andrius C. wrote: > 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". You can also give Dir["**/**/*.rb"] a try. It'll give files in the current directory and deeper, even though the presence of two "/"s might mislead you to think otherwise. --000e0ce0097435491504ac5a3f05--