check to code-server-like
This commit is contained in:
@@ -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"})
|
||||
|
||||
Reference in New Issue
Block a user