文件操作 - early_time.rb
返回文件管理
返回主菜单
删除本文件
文件: /opt/puppetlabs/puppet/lib/ruby/gems/3.2.0/gems/rake-13.0.6/lib/rake/early_time.rb
编辑文件内容
# frozen_string_literal: true module Rake # EarlyTime is a fake timestamp that occurs _before_ any other time value. class EarlyTime include Comparable include Singleton ## # The EarlyTime always comes before +other+! def <=>(other) -1 end def to_s # :nodoc: "<EARLY TIME>" end end EARLY = EarlyTime.instance end
修改文件时间
将文件时间修改为当前时间的前一年
删除文件