# File lib/reap/task/fileperm.rb, line 53
  def chmod( file_list, file_mode=644, dir_mode=755 )
    dirs, files = file_list.partition{ |l| File.directory?(l) }
    unless files.empty?
      fstr = '"' + files.join('" "') + '"'
      sh %{chmod #{file_mode} #{fstr}}
    end
    unless dirs.empty?
      fstr = '"' + dirs.join('" "') + '"'
      sh %{chmod #{dir_mode} #{fstr}}
    end
  end