From: Chris Gallagher Date: 2007-02-21T11:26:17+09:00 Subject: Re: Checking what a method has returned thanks for the reply. The thing is that im not just checking the existance of the file. the condition is that the file must exist and also be less than x ammount of time old as seen in the if statement above. file = 'public/images/' + source_url + '.jpg' if ((FileTest.exists?(file))&&((Time.new-File.stat(file).mtime)< 50000)) cheers, chris -- Posted via http://www.ruby-forum.com/.