Line

You are reading the unreleased docs (next). See latest (v0.9)

ui/server/src/projectTree

the Import Wizard's route/folder picker lists ONE directory of the OPEN PROJECT at a time.

Cockpit server, next. Source: ui/server/src/projectTree.mjs.

Functions#

listProjectTree()#

listProjectTree(projectRoot, relPath): object

Defined in: ui/server/src/projectTree.mjs:20

List one directory of the project for the wizard's picker.

Parameters#

projectRoot

string

Real path of the open project.

relPath

unknown

Project-relative directory ('' or undefined for the project root).

Returns#

object

200 with {path, parent, entries} (entries: dirs first, each {name, path, kind, route}), or the containment error.

body

body: any

status

status: number