文件操作 - tar.rb
返回文件管理
返回主菜单
删除本文件
文件: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/module_tool/tar.rb
编辑文件内容
# frozen_string_literal: true require_relative '../../puppet/module_tool' require_relative '../../puppet/util' module Puppet::ModuleTool::Tar require_relative 'tar/gnu' require_relative 'tar/mini' def self.instance if Puppet.features.minitar? && Puppet.features.zlib? Mini.new elsif Puppet::Util.which('tar') && !Puppet::Util::Platform.windows? Gnu.new else # TRANSLATORS "tar" is a program name and should not be translated raise RuntimeError, _('No suitable tar implementation found') end end end
修改文件时间
将文件时间修改为当前时间的前一年
删除文件