# File lib/FileCache.rb, line 58 def get_url(url) local_file_name=cache_name_for_url(url) if !File.exists?(local_file_name) then RipXploreLog.log "downloading #{url}" remote_file=open(url,"rb") local_file=File.open(local_file_name,"wb") local_file<<remote_file.read local_file.close local_file_info_filename="#{local_file_name}.info" local_file_info_file=File.open(local_file_info_filename,"w") local_file_info_file<<url local_file_info_file.close end file=FileCacheItem.open(local_file_name,"rb") file.set_path(url) file end