From: Raimon Fs Date: 2009-10-08T16:50:02+09:00 Subject: Re: Creating lots of folders on ftp server Chris Mowforth wrote: > Paste the error you get. You should see line numbers indicating the > method call(s) that bailed on you. EOFError: end of file reached method readline in ftp.rb at line 211 method getline in ftp.rb at line 211 method getmultiline in ftp.rb at line 221 method getresp in ftp.rb at line 235 method voidresp in ftp.rb at line 251 method voidcmd in ftp.rb at line 274 method synchronize in monitor.rb at line 242 method voidcmd in ftp.rb at line 272 method chdir in ftp.rb at line 674 at top level in createFoldersOnFTP.rb at line 161 method each in createFoldersOnFTP.rb at line 156 at top level in createFoldersOnFTP.rb at line 156 method each in createFoldersOnFTP.rb at line 133 at top level in createFoldersOnFTP.rb at line 133 method each in createFoldersOnFTP.rb at line 96 at top level in createFoldersOnFTP.rb at line 96 maybe could be a memory leak, as it goes slower, slower, slower, and after 50 folders created, the error appears... > > Incidentally I think you could do this more simply using some recursion > and a couple more ruby idioms. can you give me some hints on this, please ? thanks, regards, r. -- Posted via http://www.ruby-forum.com/.