In mail "[ruby-talk:11434] Re: Dir#each -- include '.'?"
    Neil Conway <nconway / klamath.dyndns.org> wrote:

> $ mkdir "test directory"
> $ touch touch test\ directory/foo
> $ irb
> irb(main):001:0> Dir.glob("test directory/*")
> []
> 
> Is this a bug? Dir.glob works fine for directories without

It's feature. Try also:

    Dir.glob('test\\ directory/*')


Minero Aoki