(13/04/14 18:34), Eregon (Benoit Daloze) wrote:
> I guess the most common use case is globbing on a directory recursively, so only the base directory is to be escaped, but this is not worth a specific method I think and could be done easily: Dir.glob("#{Dir.escape dir}/**/*.rb") { |file| ... }

It reminded me about old proposal, Dir#glob (not Dir.glob).

-- 
Nobu Nakada