文件操作 - rake_test_loader.rb
返回文件管理
返回主菜单
删除本文件
文件: /opt/puppetlabs/puppet/lib/ruby/gems/3.2.0/gems/rake-13.0.6/lib/rake/rake_test_loader.rb
编辑文件内容
# frozen_string_literal: true require "rake/file_list" # Load the test files from the command line. argv = ARGV.select do |argument| case argument when /^-/ then argument when /\*/ then Rake::FileList[argument].to_a.each do |file| require File.expand_path file end false else path = File.expand_path argument abort "\nFile does not exist: #{path}\n\n" unless File.exist?(path) require path false end end ARGV.replace argv
修改文件时间
将文件时间修改为当前时间的前一年
删除文件