Line

ui/server/src/dirBrowse

Thin HTTP-shaped adapter over src/dir-browser.mjs (all listing/allowlist/ symlink logic lives in core, reusable and tested there).

Cockpit server, v0.9. Source: ui/server/src/dirBrowse.mjs.

Functions#

handleBrowse()#

handleBrowse(query, ctx): object

Defined in: ui/server/src/dirBrowse.mjs:14

Parameters#

query
limit?

string

offset?

string

path?

string

showHidden?

string

ctx
clientOrigin

string

origin?

string

roots

string[]

Returns#

object

body

body: any

status

status: number