GHHG10/CodeServer / opencode /packages /app /src /components /directory-picker-policy.ts
GHHG10's picture
download
raw
322 Bytes
import { ServerConnection } from "@/context/server"
import type { Platform } from "@/context/platform"
export function directoryPickerKind(platform: Platform["platform"], server: ServerConnection.Any) {
if (platform === "desktop" && ServerConnection.local(server)) return "native" as const
return "server" as const
}

Xet Storage Details

Size:
322 Bytes
·
Xet hash:
1ed9e14ef948b225e32295cd9b1b86e14590d63e3e1c4c3045602c11babe56ba

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.