MCPcopy Index your code
hub / github.com/PyGithub/PyGithub / get_dir_contents

Method get_dir_contents

github/Repository.py:2937–2941  ·  view source on GitHub ↗

:calls: `GET /repos/{owner}/{repo}/contents/{path} `_

(self, path: str, ref: Opt[str] = NotSet)

Source from the content-addressed store, hash-verified

2935 """
2936 )
2937 def get_dir_contents(self, path: str, ref: Opt[str] = NotSet) -> list[ContentFile]:
2938 """
2939 :calls: `GET /repos/{owner}/{repo}/contents/{path} <https://docs.github.com/en/rest/reference/repos#contents>`_
2940 """
2941 return self.get_contents(path, ref=ref) # type: ignore
2942
2943 def get_contributors(self, anon: Opt[str] = NotSet) -> PaginatedList[NamedUser]:
2944 """

Callers

nothing calls this directly

Calls 1

get_contentsMethod · 0.95

Tested by

no test coverage detected