Dominevo
ReferenceHTTP API

filesystemBrowse

The filesystemBrowse router: 3 methods of the filesystem-browse capability, with tier, scope, input and output.

Capability filesystem-browse · scope system · mode singleton · source packages/types/src/capabilities/filesystem-browse.cap.ts:25.

Every method is called at /trpc/filesystemBrowse.<method> — queries with GET, mutations with POST. See How to call and Authorization.

MethodKindTierToken scopeViewer
listAllowedRootsqueryadminadmin onlyno
browsequeryadminadmin onlyno
createDirmutationadminadmin onlyno

filesystemBrowse.listAllowedRoots

  • Kind: query — GET /trpc/filesystemBrowse.listAllowedRoots
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=filesystemBrowse.listAllowedRoots on your hub

Input

void

Output

string[]

filesystemBrowse.browse

  • Kind: query — GET /trpc/filesystemBrowse.browse
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=filesystemBrowse.browse on your hub

Input

{ path: string }

Output

{ path: string; entries: ({ name: string; path: string })[]; freeBytes: number; totalBytes: number }

filesystemBrowse.createDir

  • Kind: mutation — POST /trpc/filesystemBrowse.createDir
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=filesystemBrowse.createDir on your hub

Input

{ path: string }

Output

{ path: string }