From: matz@... (Yukihiro Matsumoto) Date: 2002-08-29T01:50:28+09:00 Subject: Re: How to read files in all subdirectories? Hi, In message "How to read files in all subdirectories?" on 02/08/29, Kurt Euler writes: |I know how to read each file in a subdirectory using the code below. My question is: How can this code be modified so that the code will, in addition, read each file in all subdirectories below "some_directory"? | |(I think what I want is a way to read all subdirectories "recursively".) Use zsh style recursive wildcard: for f in Dir.glob("./some_directory/**/*") File.open(f) { |file| do_stuff_here } if File.file?(f) end matz.