def glob_map(map = {}, **options, &block)
      map    = Mapper === map ? map : Mapper.new(map, **options)
      mapped = glob(*map.to_h.keys).map { |f| [f, unescape(map[f])] }
      block ? mapped.map(&block) : Hash[mapped]
    end
def glob_map(map = {}, **options, &block)
      map    = Mapper === map ? map : Mapper.new(map, **options)
      mapped = glob(*map.to_h.keys).map { |f| [f, unescape(map[f])] }
      block ? mapped.map(&block) : Hash[mapped]
    end
Allows to search for files an map these onto other strings.

 @example
   require 'mustermann/file_utils'

   Mustermann::FileUtils.glob_map(':base.:ext' => ':base.bak.:ext') # => {'example.txt' => 'example.bak.txt'}
   Mustermann::FileUtils.glob_map(':base.:ext' => :base) { |file, mapped| mapped } # => ['example']

 @see Mustermann::Mapper