MCPcopy
hub / github.com/fastapi/fastapi / _fallback_file_exists

Method _fallback_file_exists

fastapi/routing.py:1950–1952  ·  view source on GitHub ↗
(self, fallback: str)

Source from the content-addressed store, hash-verified

1948 return None
1949
1950 def _fallback_file_exists(self, fallback: str) -> bool:
1951 _, stat_result = self.lookup_path(fallback)
1952 return stat_result is not None and stat.S_ISREG(stat_result.st_mode)
1953
1954 async def _fallback_response(
1955 self, fallback: str, scope: Scope, *, status_code: int

Callers 1

get_responseMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected