DLFile is a class for downloading a file. It's meant to be a simple replacement for the Download command with the following improvements:
- Get live stats: file size, bytes downloaded, Bps, file name, percent complete, and a few more things.
- Specify a callback func to get and display the live stats.
- The ability to abort the download by setting obj.cancel := true
- File downloads as file.ext.temp, and is renamed to specified file.ext on completion.
- Optionally delete a partial download by setting obj.del_on_cancel := true before calling Obj.Start()
- Supports resume.
- Supports batch downloading.
To-Do List:
- Find a way to make destination locations of batch downloads more flexible.
Download on GitHub
==================================================
I could use some help with testing the resume feature. I'll be trying to test this of course, but several different servers / downloads need to be tested to make sure at least the basic expected implementation has been covered.