()
| 12 | |
| 13 | class DownloadModule { |
| 14 | constructor() { |
| 15 | this.config = configModule.getConfig(); // Get the initial configuration |
| 16 | this.downloadExecutor = new DownloadExecutor({ |
| 17 | enqueueAutoRetry: (payload) => this.enqueueAutoRetryJob(payload), |
| 18 | }); |
| 19 | configModule.on('change', this.handleConfigChange.bind(this)); // Listen for configuration changes |
| 20 | |
| 21 | // Clean temp directory on startup if temp downloads are enabled |
| 22 | this.initializeTempDirectory(); |
| 23 | } |
| 24 | |
| 25 | async initializeTempDirectory() { |
| 26 | try { |
nothing calls this directly
no test coverage detected