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

Method path_mtime

Lib/importlib/_bootstrap_external.py:752–758  ·  view source on GitHub ↗

Optional method that returns the modification time (an int) for the specified path (a str). Raises OSError when the path cannot be handled.

(self, path)

Source from the content-addressed store, hash-verified

750class SourceLoader(_LoaderBasics):
751
752 def path_mtime(self, path):
753 """Optional method that returns the modification time (an int) for the
754 specified path (a str).
755
756 Raises OSError when the path cannot be handled.
757 """
758 raise OSError
759
760 def path_stats(self, path):
761 """Optional method returning a metadata dict for the specified

Callers 1

path_statsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected