MCPcopy Index your code
hub / github.com/AstrBotDevs/AstrBot / _cleanup_local_plugin_target

Function _cleanup_local_plugin_target

astrbot/cli/utils/plugin.py:217–221  ·  view source on GitHub ↗
(target_path: Path)

Source from the content-addressed store, hash-verified

215
216
217def _cleanup_local_plugin_target(target_path: Path) -> None:
218 if target_path.is_symlink() or target_path.is_file():
219 target_path.unlink(missing_ok=True)
220 elif target_path.exists():
221 shutil.rmtree(target_path, ignore_errors=True)
222
223
224def _copy_local_plugin(source_path: Path, plugins_dir: Path, target_path: Path) -> None:

Callers 2

_copy_local_pluginFunction · 0.85
install_local_pluginFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected