Skip to content

Commit c4f47b2

Browse files
committed
refac
1 parent 0085ec7 commit c4f47b2

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

open_terminal/main.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,14 @@ async def get_cwd(
441441
fs: UserFS = Depends(get_filesystem),
442442
):
443443
session_id = http_request.headers.get("x-session-id")
444-
return {"cwd": _get_session_cwd(session_id, fs), "home": fs.home}
444+
return {
445+
"cwd": _get_session_cwd(session_id, fs),
446+
"home": fs.home,
447+
"root": {
448+
"path": fs.home,
449+
"label": "Home",
450+
},
451+
}
445452

446453

447454
@app.post(

0 commit comments

Comments
 (0)