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

Method path_stats

Lib/importlib/_bootstrap_external.py:938–941  ·  view source on GitHub ↗

Return the metadata for the path.

(self, path)

Source from the content-addressed store, hash-verified

936 """Concrete implementation of SourceLoader using the file system."""
937
938 def path_stats(self, path):
939 """Return the metadata for the path."""
940 st = _path_stat(path)
941 return {'mtime': st.st_mtime, 'size': st.st_size}
942
943 def _cache_bytecode(self, source_path, bytecode_path, data):
944 # Adapt between the two APIs

Callers 2

compileFunction · 0.95
_get_codeMethod · 0.95

Calls 1

_path_statFunction · 0.85

Tested by

no test coverage detected