From: Arup Rakshit Date: 2013-02-01T05:25:20+09:00 Subject: Re: Save a file by clicking on a link Arup Rakshit wrote in post #1094617: >> @download_directory = "#{Dir.pwd}/RubyDownloads" >> @current_downloads = Dir.entries( @download_directory ) >> >> def wait_for_download >> >> #Find the newest file >> difference = [1,2] - here why you took size 2 of array? >> until difference.size == 1 - why 1? >> difference = Dir.entries(@download_directory) - @current_downloads -- in > the above line what are we doing? >> sleep 0.1 >> end Could you please answer my above said questions? -- Posted via http://www.ruby-forum.com/.