MCPcopy
hub / github.com/pytest-dev/pytest / get_mtime

Method get_mtime

src/_pytest/_py/path.py:1361–1366  ·  view source on GitHub ↗

Read file modification time

(path)

Source from the content-addressed store, hash-verified

1359 break
1360
1361 def get_mtime(path):
1362 """Read file modification time"""
1363 try:
1364 return path.lstat().mtime
1365 except error.Error:
1366 pass
1367
1368 garbage_prefix = prefix + "garbage-"
1369

Callers

nothing calls this directly

Calls 1

lstatMethod · 0.80

Tested by

no test coverage detected