# File lib/vendor/fssm/fssm/pathname.rb, line 244
      def glob(pattern, flags=0)
        dirs = Dir.glob(pattern, flags)
        dirs.map! {|path| new(path)}

        if block_given?
          dirs.each {|dir| yield dir}
          nil
        else
          dirs
        end
      end