Line

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

ui/client/features/directory-browser/services/DirectoryBrowser

Cockpit client (features), next. Source: ui/client/features/directory-browser/services/DirectoryBrowser.tsx.

Functions#

browseDirectory()#

browseDirectory(opts?): Promise<RawDirListing | BrowseFailure>

Defined in: ui/client/features/directory-browser/services/DirectoryBrowser.tsx:7

Real network I/O for the project list: one thin wrapper over ui/server's GET /api/fs/browse, which lists only the signed-in user's own workspace (one level, directories only; ). Failures come back as { ok: false, error }, never thrown.

Parameters#

opts?
offset?

number

Returns#

Promise<RawDirListing | BrowseFailure>