MCPcopy Create free account
hub / github.com/different-ai/opencode-browser / resolveUploadPath

Function resolveUploadPath

src/plugin.ts:48–52  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

46})();
47
48function resolveUploadPath(filePath: string): string {
49 const trimmed = typeof filePath === "string" ? filePath.trim() : "";
50 if (!trimmed) throw new Error("filePath is required");
51 return isAbsolute(trimmed) ? trimmed : resolve(process.cwd(), trimmed);
52}
53
54function buildFileUploadPayload(
55 filePath: string,

Callers 1

buildFileUploadPayloadFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected