MCPcopy Create free account
hub / github.com/RioArisk/claudecode_api_RemoteControl / getDirectoryRoots

Function getDirectoryRoots

lib/transcript.js:469–481  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

467// Directory Browsing
468// ============================================================
469function getDirectoryRoots() {
470 if (process.platform === 'win32') {
471 const roots = [];
472 for (let code = 65; code <= 90; code++) {
473 const drive = String.fromCharCode(code) + ':\\';
474 try {
475 if (fs.existsSync(drive)) roots.push(drive);
476 } catch {}
477 }
478 return roots;
479 }
480 return ['/'];
481}
482
483function assertDirectoryPath(target) {
484 const resolved = path.resolve(String(target || ''));

Callers 2

listDirectoriesFunction · 0.85
setupWebSocketServerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected