MCPcopy Index your code
hub / github.com/python/mypy / fudge_dir_mtimes

Function fudge_dir_mtimes

mypyc/test/testutil.py:234–239  ·  view source on GitHub ↗
(dir: str, delta: int)

Source from the content-addressed store, hash-verified

232
233
234def fudge_dir_mtimes(dir: str, delta: int) -> None:
235 for dirpath, _, filenames in os.walk(dir):
236 for name in filenames:
237 path = os.path.join(dirpath, name)
238 new_mtime = os.stat(path).st_mtime + delta
239 os.utime(path, times=(new_mtime, new_mtime))
240
241
242def replace_word_size(text: list[str]) -> list[str]:

Callers 1

run_case_innerMethod · 0.90

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…