(filePath: string)
| 46 | })(); |
| 47 | |
| 48 | function 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 | |
| 54 | function buildFileUploadPayload( |
| 55 | filePath: string, |
no outgoing calls
no test coverage detected