This commit is contained in:
Timothy Jaeryang Baek committed 2026-06-22 16:18:04 +02:00
1 parent 0085ec7d1f
commit c4f47b2776
1 file changed
+8 -1
+8 -1
View File
@@ -441,7 +441,14 @@ async def get_cwd(
fs: UserFS = Depends(get_filesystem),
):
session_id = http_request.headers.get("x-session-id")
return {"cwd": _get_session_cwd(session_id, fs), "home": fs.home}
return {
"cwd": _get_session_cwd(session_id, fs),
"home": fs.home,
"root": {
"path": fs.home,
"label": "Home",
},
}
@app.post(