(ext: string)
| 71 | } |
| 72 | |
| 73 | function getTempFilePath(ext: string): string { |
| 74 | const id = crypto.randomBytes(8).toString('hex') |
| 75 | return path.join(getTempDir(), `api-import-${id}${ext}`) |
| 76 | } |
| 77 | |
| 78 | function cleanupTempFile(filePath: string): void { |
| 79 | try { |
no test coverage detected