node-downloader-helper icon indicating copy to clipboard operation
node-downloader-helper copied to clipboard

Download completed, file incomplete

Open 277584579 opened this issue 8 months ago • 2 comments

const downloader = new DownloaderHelper( fileURL, filePath, options = { fileName: fileNameTmp, resumeIfFileExists: true, timeout:5000, removeOnStop:false, removeOnFail:false, retry:{ maxRetries:6, delay:5000 }, resumeOnIncomplete:true, resumeOnIncompleteMaxRetry:50 } ); downloader.start() downloader.on('end', (stats) => { console.log(stats) }) image I saw under the "end" callback that incomplete is false, but the size of onDiskSize and downloadedSize are different

277584579 avatar Jun 04 '24 12:06 277584579