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

Function export_text

Scripts/Developer Base/Tree Explorer.py:1016–1024  ·  view source on GitHub ↗
(lang: str, export_path: str, content: str)

Source from the content-addressed store, hash-verified

1014
1015# ------------------ Export helper ------------------
1016def export_text(lang: str, export_path: str, content: str) -> None:
1017 if not export_path.strip():
1018 return
1019 p = Path(export_path).expanduser()
1020 try:
1021 p.parent.mkdir(parents=True, exist_ok=True)
1022 p.write_text(content, encoding="utf-8")
1023 except Exception as e:
1024 print(t("err_export", lang, path=p, err=e), file=sys.stderr)
1025
1026
1027# ------------------ Installer (no root) ------------------

Callers 11

run_quickFunction · 0.70
run_customFunction · 0.70
run_only_foldersFunction · 0.70
run_jsonFunction · 0.70
run_searchFunction · 0.70
run_topFunction · 0.70
run_empty_dirsFunction · 0.70
run_dupesFunction · 0.70
run_sizes_reportFunction · 0.70
run_recentFunction · 0.70
mainFunction · 0.70

Calls 2

printFunction · 0.85
tFunction · 0.70

Tested by

no test coverage detected