_docker/lib/export/httrack_export_strategy.rb
#
# Reads the cache-update counter file to determine how many cache updates we have done so far
#
Reads the cache-update counter file to determine how many cache updates we have done so far
Reads the cache - update counter file to determine how many cache updates we have done so far
def current_httrack_cache_updates(export_directory)
    cache_update_file = "#{export_directory}/cache-updates"
    return 0 unless File.exist?(cache_update_file)
    cache_updates = File.open(cache_update_file) do |file|
      file.readline
    end
    return 0 if cache_updates.nil? || cache_updates.empty?
    begin
      return cache_updates.to_i
    rescue
    end
    0
  end
def current_httrack_cache_updates ( export_directory ) cache_update_file = "#{export_directory}/cache-updates" return 0 unless File . exist? ( cache_update_file ) cache_updates = File . open ( cache_update_file ) do | file | file . readline end return 0 if cache_updates . nil? || cache_updates . empty? begin return cache_updates . to_i rescue end 0 end
Reads the cache-update counter file to determine how many cache updates we have done so far
Reads the cache - update counter file to determine how many cache updates we have done so far
export_directory
<not_specific>