fix premission
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user