Project

General

Profile

Actions

Backport #8283

closed

Dir.glob doesn't recurse hidden directories

Added by gpakosz (Gregory Pakosz) about 9 years ago. Updated about 9 years ago.

Status:
Closed
Priority:
Normal
[ruby-core:54387]

Description

Hello,

I noticed Dir.glob('**') doesn't recurse hidden directories.

I believe regression has been introduced by r36903.

Here is the following directory / file structure:
$ find .
.
./foo
./foo/.bar
./foo/.bar/baz.txt
./foo/bar

And here is the behavior of ruby 2.0.0p0 (2013-02-24 revision 39474) [x86_64-darwin11.4.2]:
$ ruby -e "puts Dir.glob('**/*')"
foo
foo/bar

Actions

Also available in: Atom PDF