begin
		recurse(File::join(path, dir), max_depth - 1) if max_depth > 0 
		rescue Errno::EACCES => e # do not have access to folder skip it 
                 rescue Errno::DontRemember =>
		end  

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.
Becker