Test code (run from the Documents directory of a standard OS X user account).
d = Dir.new('Pictures')
pn = Pathname.new(d)
dir = pn.children.find { |child| child.directory? && child.basename.to_s == 'GoPro' }
puts dir.inspect
JRuby 1.7.5 result: