lib/browser_web_data_entity_sumarization/entity_sumarization_statistics.rb
###
# The method delete all resources that already has created result file
#
# @param [Hash{resource=>type}] resources
The method delete all resources that already has created result file
The method delete all resources that already has created result file
def keep_unloaded(resources)
        resources.delete_if { |resource, values|
          dir_path = "#{@results_dir_path}/#{values[:type]}"
          resource_name = resource.split('/').last
          File.exists?("#{dir_path}/#{StringHelper.get_clear_file_path(resource_name)}.json")
        }
      end
def keep_unloaded ( resources ) resources . delete_if { | resource , values | dir_path = "#{@results_dir_path}/#{values[:type]}" resource_name = resource . split ( '/' ) . last File . exists? ( "#{dir_path}/#{StringHelper.get_clear_file_path(resource_name)}.json" ) } end
The method delete all resources that already has created result file
The method delete all resources that already has created result file
resources
<not_specific>
<not_specific>
None