# File lib/fileutils.rb, line 1006 def touch(list, options = {}) fu_check_options options, :noop, :verbose list = fu_list(list) fu_output_message "touch #{list.join ' '}" if options[:verbose] return if options[:noop] t = Time.now list.each do |path| begin File.utime(t, t, path) rescue Errno::ENOENT File.open(path, 'a') { ; } end end end