MCPcopy Create free account
hub / github.com/Dispatcharr/Dispatcharr / _touch_reload_token

Method _touch_reload_token

apps/plugins/loader.py:805–812  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

803 return 0.0
804
805 def _touch_reload_token(self) -> None:
806 try:
807 os.makedirs(self.plugins_dir, exist_ok=True)
808 with open(self._reload_token_path, "a", encoding="utf-8"):
809 pass
810 os.utime(self._reload_token_path, None)
811 except Exception:
812 logger.debug("Failed to update plugin reload token", exc_info=True)
813
814 def _unload_package(self, package_name: str) -> None:
815 if not package_name:

Callers 1

discover_pluginsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected