lcdata.utils.download_file

lcdata.utils.download_file(url, path, filesize=None)

Download a file with a tqdm progress bar.

This will check if the file already exists, and skip it if it does. If the filesize is known, this function verifies that the function on disk has the right size, and redownloads it if it doesn’t.

Parameters
  • url (str) – URL to download from

  • path (str) – Path on disk to download the file to.

  • filesize (int, optional) – Size of the file (if known), by default None