# File lib/FileCache.rb, line 40 def get(url) local_file_name=local_name(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