From: simonh Date: 2010-08-11T05:05:06+09:00 Subject: Re: Formatting directory listings Thanks Vassilis. I'd prefer to not install anything to accomplish this. Also, I'd like to slightly to rephrase my aim: 1. Start off in 'Movies' directory. 2. Go into each subdir and get list of movies for that subdir. I've found how to just get the filename instead of full path: Dir['**/ *.avi'].collect { |vid| File.basename(vid) } 3. Store which movies are in each subdir. 4. Output the result.