Agent Zero AI framework
file browser fixes
frdelf349c1da0f6a
diff --git a/python/api/download_work_dir_file.py b/python/api/download_work_dir_file.pyindex 2961745c0..eca4c2507 100644--- a/python/api/download_work_dir_file.py+++ b/python/api/download_work_dir_file.py@@ -10,6 +10,11 @@ import osclass DownloadFile(ApiHandler):++ @classmethod+ def get_methods(cls):+ return ["GET"]+async def process(self, input: Input, request: Request) -> Output:file_path = request.args.get("path", input.get("path", ""))if not file_path:diff --git a/python/api/get_work_dir_files.py b/python/api/get_work_dir_files.pyindex 6d93e67f9..bfe6f8e12 100644--- a/python/api/get_work_dir_files.py+++ b/python/api/get_work_dir_files.py@@ -6,6 +6,11 @@ from python.helpers import files, runtimeclass GetWorkDirFiles(ApiHandler):++ @classmethod+ def get_methods(cls):+ return ["GET"]+async def process(self, input: dict, request: Request) -> dict | Response:current_path = request.args.get("path", "")if current_path == "$WORK_DIR":