Function
pickDirectory
(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?.([ |
Tested by
no test coverage detected