check to code-server-like

This commit is contained in:
Cai
2025-09-21 15:33:00 +08:00
parent 252c426c3e
commit 271672c904
10 changed files with 129416 additions and 1673 deletions

View File

@@ -135,6 +135,7 @@ def save_file():
if not os.path.exists(filepath):
return jsonify({"error": "File not found"}), 404
try:
print(f"savefile {filepath} \n content{content}")
with open(filepath, 'w') as file:
file.write(content)
return jsonify({"message": "File saved successfully"})