= private = protected
rm_rf(list, options = {})
Options: noop verbose secure
Equivalent to
#rm_r(list, :force => true)
WARNING: This method causes local vulnerability. Read the documentation of #rm_r first.
# File lib/fileutils.rb, line 638 def rm_rf(list, options = {}) fu_check_options options, OPT_TABLE['rm_rf'] options = options.dup options[:force] = true rm_r list, options end
require 'FileUtils' FileUtils.rm_rf(Dir.glob("log/*"))
require 'FileUtils' Dir["log/*"].each{|file| FileUtils.rm file}