From: "Andreas S." Date: 2007-10-14T09:35:41+09:00 Subject: Re: top 10 last played mp3's Konrad Meyer wrote: > Quoth Andreas S.: >> > know how to (correctly) compare a date to the return value of >> >> Dir['/share/music/**/*.mp3', '/share/music/*.mp3'].sort_by{|f| >> File.atime}.reverse[0,10] > > Or, if it's deeper than two levels: '**' takes care of that. -- Posted via http://www.ruby-forum.com/.