bench/load_data.rb
#
# Options: force noop verbose
# 
# Remove file(s) specified in +list+.  This method cannot remove directories.
# All StandardErrors are ignored when the :force option is set.
# 
#   FileUtils.rm %w( junk.txt dust.txt )
#   FileUtils.rm Dir.glob('*.so')
#   FileUtils.rm 'NotExistFile', :force => true   # never raises exception
# 

force noop verbose
Remove file(s) specified in +list+.  This method cannot remove directories.
All StandardErrors are ignored when the :force option is set.


force noop verbose Remove file ( s ) specified in + list + . This method cannot remove directories . All StandardErrors are ignored when the : force option is set .
def rm(list, options = {})
    fu_check_options options, OPT_TABLE['rm']
    list = fu_list(list)
    fu_output_message "rm#{options[:force] ? ' -f' : ''} #{list.join ' '}" if options[:verbose]
    return if options[:noop]
    list.each do |path|
      remove_file path, options[:force]
    end
  end
def rm ( list , options = { } ) fu_check_options options , OPT_TABLE [ 'rm' ] list = fu_list ( list ) fu_output_message "rm#{options[:force] ? ' -f' : ''} #{list.join ' '}" if options [ :verbose ] return if options [ :noop ] list . each do | path | remove_file path , options [ :force ] end end
Options: force noop verbose
Remove file(s) specified in +list+.
Options : force noop verbose Remove file ( s ) specified in + list + .
list
options