I have ~/work
pointing to a directory on another partition using a symbolic link (ln -s...
).
For example, ~
is on /dev/sda1
, whereas ~/work
is a link to a directory on /dev/sda2
.
The array returned by Dir.glob('**', '*rb')
does not include any files in ~/work
.
Is there a way I can get glob
to include ~/work
files?
BernardK pointed out in his comment that this question was asked at Can I traverse symlinked directories in Ruby with a "**" glob?. The answer there is a bit arcane, and I am wondering if any modifications to the standard library regarding this issue have been made in the twelve years since that question was posted.