Bulk asynchronous downloader for multiple file hosts
Python asynciobunkrcyberdropdownloaderdropboxfilestergofilegoogle-drivemediafiremegamega-nzonedrivepatreonpawchivepinterestpixeldraintransfer-ittwitchtwittervk
handle orphaned links (#745)
datawhoresfdcf72a048ed
diff --git a/cyberdrop_dl/utils/utilities.py b/cyberdrop_dl/utils/utilities.pyindex 4994c85ef..e32c8f698 100644--- a/cyberdrop_dl/utils/utilities.py+++ b/cyberdrop_dl/utils/utilities.py@@ -212,7 +212,7 @@ def purge_dir_tree(dirname: Path) -> None:# Remove empty filesfor file_name in filenames:file_path = dir_path / file_name- if file_path.stat().st_size == 0:+ if file_path.exists() and file_path.stat().st_size == 0:file_path.unlink()# Remove empty directories