文件操作 - locatable.rb
返回文件管理
返回主菜单
删除本文件
文件: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/parser/locatable.rb
编辑文件内容
# frozen_string_literal: true # Interface for something that is "locatable" (holds offset and length). class Puppet::Pops::Parser::Locatable # The offset in the locator's content def offset end # The length in the locator from the given offset def length end # This class is useful for testing class Fixed < Puppet::Pops::Parser::Locatable attr_reader :offset attr_reader :length def initialize(offset, length) @offset = offset @length = length end end end
修改文件时间
将文件时间修改为当前时间的前一年
删除文件