Function
pickDirectory
(target: 'workspaceDir' | 'clawProjectDir')
Source from the content-addressed store, hash-verified
| 110 | } |
| 111 | |
| 112 | async function pickDirectory(target: 'workspaceDir' | 'clawProjectDir') { |
| 113 | const nextPath = await window.clawDesktop?.pickDirectory?.(); |
| 114 | if (nextPath) { |
| 115 | setConfig(current => ({ |
| 116 | ...current, |
| 117 | [target]: nextPath, |
| 118 | })); |
| 119 | } |
| 120 | } |
| 121 | |
| 122 | async function pickBinaryPath() { |
| 123 | const nextPath = await window.clawDesktop?.pickFile?.([ |
Tested by
no test coverage detected