We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3f37ebe + 46206d7 commit 51a436aCopy full SHA for 51a436a
idc_index/index.py
@@ -1531,6 +1531,17 @@ def download_from_selection(
1531
)
1532
1533
total_size = round(result_df["series_size_MB"].sum(), 2)
1534
+ disk_free_space_MB = psutil.disk_usage(downloadDir).free / (1000 * 1000)
1535
+ if disk_free_space_MB < total_size:
1536
+ logger.error("Not enough free space on disk to download the files.")
1537
+ logger.error(
1538
+ "Total size of files to download: " + self._format_size(total_size)
1539
+ )
1540
1541
+ "Total free space on disk: " + self._format_size(disk_free_space_MB)
1542
1543
+ return
1544
+
1545
logger.info("Total size of files to download: " + self._format_size(total_size))
1546
logger.info(
1547
"Total free space on disk: "
0 commit comments