MCPcopy Create free account
hub / github.com/EasyIME/PIME / _check_file

Function _check_file

python/python3/tornado/autoreload.py:191–201  ·  view source on GitHub ↗
(modify_times: Dict[str, float], path: str)

Source from the content-addressed store, hash-verified

189
190
191def _check_file(modify_times: Dict[str, float], path: str) -> None:
192 try:
193 modified = os.stat(path).st_mtime
194 except Exception:
195 return
196 if path not in modify_times:
197 modify_times[path] = modified
198 return
199 if modify_times[path] != modified:
200 gen_log.info("%s modified; restarting server", path)
201 _reload()
202
203
204def _reload() -> None:

Callers 1

_reload_on_updateFunction · 0.85

Calls 2

_reloadFunction · 0.85
infoMethod · 0.80

Tested by

no test coverage detected