Sha256: b37f2b1bb572734617752e2aaa85d60141bda6cfbf7de0bb7d3807b1d7f3cd09
Contents?: true
Size: 394 Bytes
Versions: 101
Compression:
Stored size: 394 Bytes
Contents
#!/usr/bin/env ruby require "knj/autoload" include Knj Os.chdir_file(__FILE__) curtime = Time.new.to_i Dir.new("cache").each do |filename| if filename != "." and filename != ".." and filename != "README" fn = "cache/#{filename}" file = File.new(fn) mtime = file.mtime.to_i diftime = curtime - mtime if diftime >= (3600 * 48) File.delete(fn) end end end
Version data entries
101 entries across 101 versions & 1 rubygems