private
def add_file_to_cache(filepath)
if filepath.nil? or filepath.empty? then return end
- if not File.exist? @download_path then FileUtils.mkdir_p "#{download_path}" end
+ if not File.exist? @download_path then FileUtils.mkdir_p "#{@download_path}" end
filename = File.basename(filepath)
cachefile = File.join(@download_path, filename)
if not File.exist? cachefile then
@log.info "Failed to move [#{filename}] to "
- @log.info " [#{download_path}]"
+ @log.info " [#{@download_path}]"
end
remove_old_files_in_cache
end