lib/fbo/remote_file.rb in fbo-0.1.6 vs lib/fbo/remote_file.rb in fbo-0.1.7

- old
+ new

@@ -20,10 +20,10 @@ end protected def fetch_file(filename) - Dir.mkdir(@tmp_dir) unless Dir.exists?(@tmp_dir) + Dir.mkdir(@tmp_dir) unless Dir.exist?(@tmp_dir) tmp_filename = ::File.join(@tmp_dir, filename) ftp = Net::FTP.new(FTP_SERVER) ftp.login ftp.getbinaryfile(filename, tmp_filename) ftp.close