From ead5c3f863d5f9a17a116975515c51d37cf91fc1 Mon Sep 17 00:00:00 2001 From: Jules-WinnfieldX Date: Sun, 21 Apr 2024 22:00:18 -0600 Subject: [PATCH] implement check for download folder existing --- cyberdrop_dl/__init__.py | 2 +- cyberdrop_dl/utils/sorting.py | 4 ++++ pyproject.toml | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/cyberdrop_dl/__init__.py b/cyberdrop_dl/__init__.py index bb0cf5357..b8f2c2d05 100644 --- a/cyberdrop_dl/__init__.py +++ b/cyberdrop_dl/__init__.py @@ -1 +1 @@ -__version__ = "5.2.45" +__version__ = "5.2.46" diff --git a/cyberdrop_dl/utils/sorting.py b/cyberdrop_dl/utils/sorting.py index 95d235c5e..27c1b1206 100644 --- a/cyberdrop_dl/utils/sorting.py +++ b/cyberdrop_dl/utils/sorting.py @@ -76,6 +76,10 @@ async def sort(self) -> None: if await self.check_dir_parents(): return + + if not self.download_dir.is_dir(): + await log_with_color("Download Directory does not exist", "red", 40) + return for folder in self.download_dir.iterdir(): if not folder.is_dir(): diff --git a/pyproject.toml b/pyproject.toml index f3bd5bc96..3ab5541cb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "cyberdrop-dl" -version = "5.2.45" +version = "5.2.46" description = "Bulk downloader for multiple file hosts" authors = ["Jules Winnfield "] readme = "README.md"