Bulk asynchronous downloader for multiple file hosts
Python asynciobunkrcyberdropdownloaderdropboxfilestergofilegoogle-drivemediafiremegamega-nzonedrivepatreonpawchivepinterestpixeldraintransfer-ittwitchtwittervk
Updated purge_dir method for better readability
cowliquid7dc918bf1911
diff --git a/cyberdrop_dl/utils/base_functions.py b/cyberdrop_dl/utils/base_functions.pyindex 48eec70a5..9429d187a 100644--- a/cyberdrop_dl/utils/base_functions.py+++ b/cyberdrop_dl/utils/base_functions.py@@ -65,8 +65,8 @@ async def purge_dir(dir, in_place=True):for tree_element in dir_tree:sub_dir = tree_element[0]- is_empty = not len(os.listdir(sub_dir))- if is_empty:+ dir_count = len(os.listdir(sub_dir))+ if dir_count == 0: # Helps with readability and i've had issues with it deleting non-empty dirsdeleted.append(sub_dir)if in_place: