fix premission

This commit is contained in:
Cai
2025-09-15 12:19:12 +00:00
parent 52029a1939
commit 148e09e473
2 changed files with 4 additions and 5 deletions

View File

@@ -156,7 +156,9 @@ def file_tree():
if not path:
return jsonify({"error": "Missing path parameter"}), 400
root_workspace_path = current_app.config['ROOT_WORKSPACE_PATH']
base_path = f'{root_workspace_path}/{user_id}/{path}'
base_path = os.path.join(root_workspace_path, user_id, path)
print(base_path)
if not os.path.exists(base_path):
return jsonify({"error": "Workspace not found"}), 404
tree = get_file_tree(base_path)