TaskFileDownloader
Download external files that are required by a task. To init this class, you need to provide the brick name of the task and the message dispatcher of the task. For example: TaskFileDownloader(brick_name=MyTaskClass.get_brick_name(), message_dispatcher=self.message_dispatcher)
It is recommended to use MyTaskClass.get_brick_name() because this defines the destination of the downloader file. With this, the destination will be the same even is your task is overriden by another task (and the file will not be duplicated).
:param FileDownloader: description :type FileDownloader: type
brick_name: strdestination_folder: strmessage_dispatcher: MessageDispatchersummary
strMessageDispatcherUnzip a file to a given path
strstrstrDownload a file from a given url to a given file path
strstrDictfloatstrstrDownload a file from a given url if the file does not already exist. This class is useful for downloading a file that is required for a task. If used within a task, it automatically logs the download progress and the time it took to download the file.
strstrDictfloatbool - Falsestr