MCPcopy Create free account
hub / github.com/Work-Fisher/code-claw / pickDirectory

Function pickDirectory

ai-code-studio/src/components/SettingsDialog.tsx:104–112  ·  view source on GitHub ↗
(target: 'workspaceDir' | 'clawProjectDir')

Source from the content-addressed store, hash-verified

102 }
103
104 async function pickDirectory(target: 'workspaceDir' | 'clawProjectDir') {
105 const nextPath = await window.clawDesktop?.pickDirectory?.();
106 if (nextPath) {
107 setConfig(current => ({
108 ...current,
109 [target]: nextPath,
110 }));
111 }
112 }
113
114 async function pickBinaryPath() {
115 const nextPath = await window.clawDesktop?.pickFile?.([

Callers 1

SettingsDialogFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected