Sha256: bc0c85f7f67f151797639faf674791c1d635c7a028eabc475ebaf3b7ef3e35fb
Contents?: true
Size: 337 Bytes
Versions: 106
Compression:
Stored size: 337 Bytes
Contents
#!/usr/bin/env ruby # todo copied from os.rb NOT_MODIFIED = 3 NOT_FOUND = 4 SUCCESS = 0 timestamp = ARGV[0].to_i path = ARGV[1] exit NOT_FOUND unless File.exist?(path) exit NOT_MODIFIED if File.mtime(path).to_i <= timestamp File.open(path) do |file| while bytes = file.read(4096) do $stdout.write(bytes) end end exit SUCCESS
Version data entries
106 entries across 106 versions & 2 rubygems