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