title: Want to move entire folder using Net :: Ftp on rails
body: <p>I have rails application, which sends file to FTP. I want to move entire folder to Ftp, but it's giving this error:</p>
  
  <pre><code>/home/Anup/code/DashGo-2.2.0/vendor/rails/railties/lib/commands/runner.rb:47: /usr/lib/ruby/1.8/net/ftp.rb:471:in `gets': Is a directory - /home/Anup/code/DashGo-2.2.0/private/temp_file (Errno::EISDIR)
      from /usr/lib/ruby/1.8/net/ftp.rb:471:in `storlines'
      from /usr/lib/ruby/1.8/net/ftp.rb:470:in `loop'
      from /usr/lib/ruby/1.8/net/ftp.rb:470:in `storlines'
      from /usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
      from /usr/lib/ruby/1.8/net/ftp.rb:467:in `storlines'
  </code></pre>
  
  <p>I am using <code>Net::FTP</code> rails gem.</p>
  
  <p>Is any method available in ruby which gives the list of all files given the folder name?</p>