MCPcopy Index your code
hub / github.com/RustPython/RustPython / path_stats

Method path_stats

Lib/importlib/_bootstrap_external.py:966–969  ·  view source on GitHub ↗

Return the metadata for the path.

(self, path)

Source from the content-addressed store, hash-verified

964 """Concrete implementation of SourceLoader using the file system."""
965
966 def path_stats(self, path):
967 """Return the metadata for the path."""
968 st = _path_stat(path)
969 return {'mtime': st.st_mtime, 'size': st.st_size}
970
971 def _cache_bytecode(self, source_path, bytecode_path, data):
972 # Adapt between the two APIs

Callers 1

compileFunction · 0.95

Calls 1

_path_statFunction · 0.70

Tested by

no test coverage detected