文件操作 - sourcetext.rb
返回文件管理
返回主菜单
删除本文件
文件: /opt/puppetlabs/puppet/lib/ruby/3.2.0/racc/sourcetext.rb
编辑文件内容
#-- # # # # Copyright (c) 1999-2006 Minero Aoki # # This program is free software. # You can distribute/modify this program under the same terms of ruby. # see the file "COPYING". # #++ module Racc class SourceText def initialize(text, filename, lineno) @text = text @filename = filename @lineno = lineno end attr_reader :text attr_reader :filename attr_reader :lineno def to_s "#<SourceText #{location()}>" end def location "#{@filename}:#{@lineno}" end end end
修改文件时间
将文件时间修改为当前时间的前一年
删除文件