file browser fixes

frdel committed Jun 25, 2025 at 11:53 UTC f349c1da0f6ad6493596d63e3e5d0a7a6510d095
2 files changed +10
python/api/download_work_dir_file.py
+5
@@ -10,6 +10,11 @@ import os
10
11
12 class DownloadFile(ApiHandler):
13 +
14 + @classmethod
15 + def get_methods(cls):
16 + return ["GET"]
17 +
18 async def process(self, input: Input, request: Request) -> Output:
19 file_path = request.args.get("path", input.get("path", ""))
20 if not file_path:
python/api/get_work_dir_files.py
+5
@@ -6,6 +6,11 @@ from python.helpers import files, runtime
6
7
8 class GetWorkDirFiles(ApiHandler):
9 +
10 + @classmethod
11 + def get_methods(cls):
12 + return ["GET"]
13 +
14 async def process(self, input: dict, request: Request) -> dict | Response:
15 current_path = request.args.get("path", "")
16 if current_path == "$WORK_DIR":