From: Paul Lutus Date: 2006-12-17T09:25:04+09:00 Subject: Re: question about .gsub Jochen Kaechelin wrote: > I found a script which solves my problem: > > > #!/usr/local/bin/ruby > > require 'find' > > dirs = ["/Users/aragon/Sites"] > excludes = [] > for dir in dirs > Find.find(dir) do |path| > if FileTest.directory?(path) > if excludes.include?(File.basename(path)) > Find.prune # Don't look any further into this directory. > else > next > end > else > puts path > end > end > end I believe this is more complex than it needs to be, or I didn't understand your original request. Please see my other post. -- Paul Lutus http://www.arachnoid.com