MCPcopy Create free account
hub / github.com/block/buzz / validateReposDir

Function validateReposDir

desktop/src/shared/api/tauri.ts:1334–1336  ·  view source on GitHub ↗
(dir: string)

Source from the content-addressed store, hash-verified

1332// Validate a candidate repos dir without mutating the filesystem. Rejects
1333// with a human-readable reason; resolves for a valid or empty path.
1334export async function validateReposDir(dir: string): Promise<void> {
1335 await invokeTauri("validate_repos_dir", { dir });
1336}
1337
1338export const setPreventSleepActive = (active: boolean) =>
1339 invokeTauri("set_prevent_sleep_active", { active });

Callers 2

EditWorkspaceDialogFunction · 0.90
AddWorkspaceDialogFunction · 0.90

Calls 1

invokeTauriFunction · 0.70

Tested by

no test coverage detected