MCPcopy Index your code
hub / github.com/xerrors/Yuxi / getWorkspaceTree

Function getWorkspaceTree

web/src/apis/workspace_api.js:13–16  ·  view source on GitHub ↗
(path = '/', recursive = false, filesOnly = false)

Source from the content-addressed store, hash-verified

11}
12
13export const getWorkspaceTree = (path = '/', recursive = false, filesOnly = false) => {
14 const query = buildQuery({ path, recursive, files_only: filesOnly })
15 return apiGet(`/api/workspace/tree?${query}`)
16}
17
18export const getWorkspaceFileContent = (path) => {
19 const query = buildQuery({ path })

Callers

nothing calls this directly

Calls 2

apiGetFunction · 0.90
buildQueryFunction · 0.70

Tested by

no test coverage detected