From: Gunther Diemant Date: 2011-09-16T15:49:13+09:00 Subject: Re: Some newbie questions > 3. Is there any difference using Dir.entries "the directory" > compared to using > Dir.glob "*" if you use them on the same directory? Yes. Dir.glob '*' will not return Unix-style hidden files (files that start with a dot). Example: sampledir |-- . |-- .. |-- foo.txt |-- .bar.txt Dir.glob("*") #=> ['foo.txt'] #if Dir.pwd = sampledir Dir.entries('sampledir') #=> ['.', '..', 'foo.txt', '.bar.txt']