MCPcopy
hub / github.com/django/django / notify_file_changed

Method notify_file_changed

django/utils/autoreload.py:386–390  ·  view source on GitHub ↗
(self, path)

Source from the content-addressed store, hash-verified

384 raise NotImplementedError("subclasses must implement check_availability().")
385
386 def notify_file_changed(self, path):
387 results = file_changed.send(sender=self, file_path=path)
388 logger.debug("%s notified as changed. Signal results: %s.", path, results)
389 if not any(res[1] for res in results):
390 trigger_reload(path)
391
392 # These are primarily used for testing.
393 @property

Callers 2

tickMethod · 0.80
_check_subscriptionMethod · 0.80

Calls 3

trigger_reloadFunction · 0.85
sendMethod · 0.45
debugMethod · 0.45

Tested by

no test coverage detected