MCPcopy Index your code
hub / github.com/python/cpython / _path_stat

Function _path_stat

Lib/importlib/_bootstrap_external.py:145–152  ·  view source on GitHub ↗

Stat the path. Made a separate function to make it easier to override in experiments (e.g. cache stat results).

(path)

Source from the content-addressed store, hash-verified

143
144
145def _path_stat(path):
146 """Stat the path.
147
148 Made a separate function to make it easier to override in experiments
149 (e.g. cache stat results).
150
151 """
152 return _os.stat(path)
153
154
155def _path_is_mode_type(path, mode):

Callers 5

_path_is_mode_typeFunction · 0.85
_calc_modeFunction · 0.85
find_specMethod · 0.85
path_statsMethod · 0.85
find_specMethod · 0.85

Calls 1

statMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…