realtwin.util_lib.download_single_file_from_web
- realtwin.util_lib.download_single_file_from_web(url: str, dest_filename: str, chunk_size=1024) bool[source]
Downloads a large file from a URL in chunks and saves it to the specified destination.
- Parameters:
url (str) – The URL of the file to download.
dest_filename (str) – filename or path to the filename to save the downloaded file.
chunk_size (int) – Size of each chunk to read in bytes (default: 1024).
- Returns:
True if the download is successful, False otherwise.
- Return type:
bool