title: Ruby filelist exclude a folder
body: <p>Here are all things I have tried:</p>
  
  <pre><code>  files = FileList.new("c:/temp/**/*") do |file|
      file.exclude("c:/temp/logs/")
    end
  
  
  files = FileList.new("c:/temp/**/*") do |file|
    file.exclude("c:/temp/logs")
  end
  
    files = FileList.new("c:/temp/**/*") do |file|
      file.exclude("c:/temp/logs/*.*")
    end
  
  
    files = FileList.new("c:/temp/**/*") do |file|
      file.exclude("c:/temp/logs/**/*")
    end
  
  
    files = FileList.new("c:/temp/**/*") do |file|
      file.exclude("c:/temp/**/logs/")
    end
  </code></pre>
  
  <p>rake version is  0.9.2.2 and Ruby version is 193.
  all doesn't work. How  should I exclude a directory in a filelist?</p>