Skip to content

Bulk asynchronous downloader for multiple file hosts

fix: free space check on network drives (Windows)

NTFSvolumeedfe4df465a3
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 60b24a66e..776cceace 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -31,6 +31,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
- Update website salt (Gofile)
+- Free space check on network drives (Windows)
## [9.15.1] - 2026-06-11
diff --git a/cyberdrop_dl/storage/_psutil.py b/cyberdrop_dl/storage/_psutil.py
index d384c9deb..3274d52ad 100644
--- a/cyberdrop_dl/storage/_psutil.py
+++ b/cyberdrop_dl/storage/_psutil.py
@@ -68,6 +68,7 @@ def _disk_usage(path: Path) -> int:
async def get_free_space(folder: Path) -> int:
+ await _check_nt_network_drive(folder)
mount = _get_mount_point(folder)
if not mount:
return 0
@@ -137,7 +138,7 @@ async def start_loop() -> None:
if not mountpoints:
return
- usage = await asyncio.gather(*(asyncio.to_thread(_disk_usage, mount) for mount in mountpoints))
+ usage = await asyncio.gather(*(asyncio.to_thread(_disk_usage, mount) for mount in mountpoints)) # noqa: TID251
_free_space.update(zip(mountpoints, usage, strict=True))
last_check = -1