MCPcopy Create free account
hub / github.com/dedsec1121fk/DedSec / write_plugin_file

Function write_plugin_file

Scripts/Network Tools/Dark.py:122–129  ·  view source on GitHub ↗
(name, code)

Source from the content-addressed store, hash-verified

120 os.makedirs(plugins_dir, exist_ok=True)
121 return results_dir, plugins_dir
122
123RESULTS_DIR, PLUGINS_DIR = ensure_results_and_plugins()
124
125# -------------------------
126# Self-install plugins (writes plugin files into PLUGINS_DIR)
127# -------------------------
128def write_plugin_file(name, code):
129 path = os.path.join(PLUGINS_DIR, name)
130 try:
131 with open(path, "w", encoding="utf-8") as f:
132 f.write(code)

Callers 1

install_pluginsFunction · 0.70

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected