(finalPath: string)
| 74 | } |
| 75 | |
| 76 | async function makeTempTransferPath(finalPath: string): Promise<string> { |
| 77 | const adapter = getSyncAdapter(); |
| 78 | const tempDir = await adapter.getTempDir(); |
| 79 | await adapter.ensureDir(tempDir); |
| 80 | const ext = getExt(finalPath) || "tmp"; |
| 81 | return adapter.joinPath( |
| 82 | tempDir, |
| 83 | `readany-transfer-${Date.now()}-${Math.random().toString(36).slice(2)}.${ext}`, |
| 84 | ); |
| 85 | } |
| 86 | |
| 87 | async function uploadFileToRemote( |
| 88 | backend: ISyncBackend, |
no test coverage detected