Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

Commit

Permalink
implement check for download folder existing
Browse files Browse the repository at this point in the history
  • Loading branch information
Jules-WinnfieldX committed Apr 22, 2024
1 parent 427e3e7 commit ead5c3f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cyberdrop_dl/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "5.2.45"
__version__ = "5.2.46"
4 changes: 4 additions & 0 deletions cyberdrop_dl/utils/sorting.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>"]
readme = "README.md"
Expand Down

0 comments on commit ead5c3f

Please sign in to comment.