MCPcopy Create free account
hub / github.com/JasonBuildAI/GoldMind / create_file

Function create_file

backend/scripts/utils/init_project.py:15–21  ·  view source on GitHub ↗

创建文件

(filepath: str, content: str)

Source from the content-addressed store, hash-verified

13BACKEND_DIR = PROJECT_ROOT / "backend"
14
15def create_file(filepath: str, content: str):
16 """创建文件"""
17 path = Path(filepath)
18 path.parent.mkdir(parents=True, exist_ok=True)
19 with open(path, "w", encoding="utf-8") as f:
20 f.write(content)
21 print(f"✅ 创建文件: {filepath}")
22
23def main():
24 print("🚀 开始创建黄金市场分析系统项目...")

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected