MCPcopy
hub / github.com/coder/mux / listDirectory

Method listDirectory

src/node/services/projectService.ts:1306–1316  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

1304 }
1305
1306 async listDirectory(path: string) {
1307 try {
1308 const tree = await listDirectory(path);
1309 return { success: true as const, data: tree };
1310 } catch (error) {
1311 return {
1312 success: false as const,
1313 error: getErrorMessage(error),
1314 };
1315 }
1316 }
1317
1318 async createDirectory(
1319 requestedPath: string

Callers 3

DirectoryPickerModalFunction · 0.80
routerFunction · 0.80

Calls 2

getErrorMessageFunction · 0.90
listDirectoryFunction · 0.85

Tested by

no test coverage detected