--cf0hFtnykp6aONGL Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable STEPHEN BECKER I V (Becker004 / gmail.com) wrote: > 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 $ ruby x = 0 begin raise ArgumentError if x == 0 raise RuntimeError if x == 1 rescue ArgumentError => e puts e x = 1 retry rescue RuntimeError => e puts e x = 2 retry end ArgumentError RuntimeError -- Eric Hodel - drbrain / segment7.net - http://segment7.net All messages signed with fingerprint: FEC2 57F1 D465 EB15 5D6E 7C11 332A 551C 796C 9F04 --cf0hFtnykp6aONGL Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (FreeBSD) iD8DBQFBaCwkMypVHHlsnwQRAi+TAKCV3+J9fepwjstJHbQH2uxLdURc0ACgpsTx qndGqJiwEC0SEvAgM2gy+kw Wx -----END PGP SIGNATURE----- --cf0hFtnykp6aONGL--