From: Harry Ohlsen Date: 2004-01-20T08:32:36+09:00 Subject: Re: Help! cannot recursive call Greg Brondo wrote: > Having a problem with following code. It will drop to the first directory > and then hang. Any help will be appreciated. > > ---- snip ---- > require 'net/ftp' > > public > > def chmodDir(ftp, dir) > ftp.chdir(dir) > puts ftp.pwd > ftp.list() do |e| > dir = e.split(/ +/)[8] > if e=~ /^d/ > ftp.chmodDir(ftp, dir) # <------------- > end > end > end Maybe I've misread the code, but shouldn't the marked line just be "chmodDir(ftp, dir)"? H.