Get information about a file or directory in the repository

 @param [String] path The path of the file or directory to get information
        about
 @return [Hash<Symbol, Object>] Information about the requested file or
         directory.
546340
def info(path)
      info   = {}
      object = object! path

      info[:history] = history path
      info[:mode]    = object.mode
      info[:name]    = object.name
      info[:path]    = path
      info[:sha]     = object.id

      info[:created]  = info[:history].last.committed_date
      info[:modified] = info[:history].first.committed_date

      if object.is_a? Grit::Blob
        info[:mime] = object.mime_type
        info[:size] = object.size
        info[:type] = :blob
      else
        info[:path] += '/'
        info[:type] = :tree
      end

      info
    end
781193
def load_application_info(path):
        
        with open(path + 'info.json', 'r') as infoFile:
            info = json.loads(infoFile.read())
        return info
1299457
def get(path, options={}, raw=false, unformatted=true)
      request(:get, path, options, raw, unformatted)
    end
443385
def raw_data
      return IO.read(@on_disk_path) if on_disk?
      return nil unless @blob

      if !@wiki.repo.bare && @blob.is_symlink
        new_path = @blob.symlink_target(::File.join(@wiki.repo.path, '..', self.path))
        return IO.read(new_path) if new_path
      end

      @blob.data
    end
423158
def get(path, headers: {}, query: {})
      @parent.get("/#{@segment}/#{path}".gsub(%r{/+}, '/'),
                  headers: @default_headers.merge(headers), query: query)
    end
1150177
def get(path, options = {})
      if options[:query].nil?
        options.merge!({ query: { api_key: @key } })
      else
        options[:query].merge!({ api_key: @key })
      end

      response = self.class.get path, options
      raise LoLBaseError, response.message if response.code != 200
      response.body
    end
414484
def extract_path(url_hash)
      path_parts = url_hash[:url_f].split('//').last.split('/')[1..-1]
      path = "/#{path_parts.join('/')}"
      if path&.length > 2
        url_hash[:url_path] = path
        url_hash[:url_f] = url_hash[:url_f].gsub(url_hash[:url_path], '')
      end
      url_hash
    end
742
def find_git_repository(self, path):
        
        while path is not None:
            git_path = os.path.join(path,'.git')
            if os.path.exists(git_path) and os.path.isdir(git_path):
                return path
            path = os.path.dirname(path)
        return None
49341
def fetch_file_contents(remote_path)
      result = backend.file(remote_path)
      if result.exist? && result.file?
        result.content
      else
        nil
      end
    end
837638
def get(path, params = {}, header = {})
      _send(Net::HTTP::Get.new(expand_path(path, params), expand_header(header)))
    end
498686
def load!(path)
      settings = YAML.safe_load(ERB.new(File.new(path).read).result)['api']
      from_hash(settings) if settings.is_a? Hash
    end
629299
def get(self, path):
        
        data = self.app.test_client().get("/%s" % path).data
        return data
171430
def mkdir(path)
      path = @uri.merge(path).path
      res = @handler.request(:mkcol, path, nil, @headers)
      res.body
    end
620737
def find_css(path = @path)
        Dir.glob(path).select { |f| File.file? f }.map { |file| file }
      end
18847
def read_yaml(path)
      return unless File.exist?(path)
      source = YAML.load_file(path)
      return unless source.is_a?(Hash)

      update_with { |config| read_yaml_key(source, config[:key]) }
    end
1248578
def get_single_file_info(self, rel_path):
        

        f_path = self.get_full_file_path(rel_path)
        return get_single_file_info(f_path, rel_path)
195878
def search_paths(path = ENV['PATH'])
      paths = if path && !path.empty?
                path.split(::File::PATH_SEPARATOR)
              else
                %w(/usr/local/bin /usr/ucb /usr/bin /bin)
              end
      paths.select(&Dir.method(:exist?))
    end