mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-04-29 20:20:42 +00:00
file browser fixes
This commit is contained in:
parent
26c2560cd1
commit
f349c1da0f
2 changed files with 10 additions and 0 deletions
|
|
@ -6,6 +6,11 @@ from python.helpers import files, runtime
|
|||
|
||||
|
||||
class 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":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue