From: Florian Frank Date: 2004-10-09T17:50:13+09:00 Subject: Re: Two rescues? On 2004-10-09 10:20:39 +0900, STEPHEN BECKER I V wrote: > Can i do this? if not is there a way to jimmy-rig around this? I have > a program that i want to run on windows and linux but i get differnt > file errors from the two systems. You can do this: begin folder = File.join(path, dir) recurse(folder, max_depth - 1) if max_depth > 0 rescue Errno::EACCESS, Errno::SomethingElse => e STDERR.puts "Caught #{e}: Skipping folder '#{folder}'..." end -- Florian Frank