(...paths: string[])
| 30 | } |
| 31 | |
| 32 | function cleanupTemp(...paths: string[]) { |
| 33 | for (const p of paths) { |
| 34 | try { |
| 35 | const stat = fs.statSync(p) |
| 36 | if (stat.isDirectory()) { |
| 37 | fs.rmSync(p, { recursive: true, force: true }) |
| 38 | } else { |
| 39 | fs.unlinkSync(p) |
| 40 | } |
| 41 | } catch { |
| 42 | /* ignore */ |
| 43 | } |
| 44 | } |
| 45 | } |
| 46 | |
| 47 | export function registerImportRoutes( |
| 48 | server: FastifyInstance, |
no outgoing calls
no test coverage detected