From: Joel Pearson Date: 2013-02-01T04:39:11+09:00 Subject: Re: Save a file by clicking on a link difference = Dir.entries(@download_directory) - @current_downloads If you subtract one array from another you get the difference. In this case, the difference is the most recent file. "BR.bmp.part" is the result of a temporary file being created during the download, this is one of the reasons I said the download waiting method needs a bit of rewriting. It should continue to look until there is only one file difference, but a "part" file might mess that up because the difference is then two files. You'd just have to adapt the code to suit that scenario. It isn't something I've had to deal with before because all the file downloads I've done have been tiny. -- Posted via http://www.ruby-forum.com/.