From: Joel Pearson Date: 2013-02-01T05:54:28+09:00 Subject: Re: Save a file by clicking on a link >>> difference = [1,2] - here why you took size 2 of array? So that a variable called difference exists for the next line, and is not 1. >>> until difference.size == 1 - why 1? Because then there will be a single file, which is the one you've just downloaded. More than one is venturing into the unknown :) >>> difference = Dir.entries(@download_directory) - @current_downloads >>>in the above line what are we doing? The current files minus the previous files = the new file. -- Posted via http://www.ruby-forum.com/.