how do i get Ruby FileList to pick up files without a name, like .htaccess on windows

Posted by Andrew Bullock on Stack Overflow See other posts from Stack Overflow or by Andrew Bullock
Published on 2010-03-29T10:07:22Z Indexed on 2010/03/29 10:13 UTC
Read the original article Hit count: 221

Filed under:

I want to search my filesystem for any files with the extension .template.

The below works fine for everything except .htaccess.template

FileList.new(File.join(root, '**', '*.template')).each do |file|
    # do stuff with file
end 

because windows doesn't like nameless files, grrrr

How do I make this work on Windows? This code works fine on Linux....

© Stack Overflow or respective owner

Related posts about ruby