# File lib/fakefs/file_system.rb, line 23 def find(path) parts = path_parts(normalize_path(path)) return fs if parts.empty? # '/' entries = Globber.expand(path).flat_map do |pattern| parts = path_parts(normalize_path(pattern)) find_recurser(fs, parts).flatten end case entries.length when 0 then nil when 1 then entries.first else entries end end