Skip to content

Bulk asynchronous downloader for multiple file hosts

Try to fix moving to other drive.

Jules-WinnfieldX54b12cb48807
diff --git a/cyberdrop_dl/__init__.py b/cyberdrop_dl/__init__.py
index 7b77c8bd9..3af324c8e 100644
--- a/cyberdrop_dl/__init__.py
+++ b/cyberdrop_dl/__init__.py
@@ -1 +1 @@
-__version__ = "5.0.37"
+__version__ = "5.0.38"
diff --git a/cyberdrop_dl/utils/transfer/first_time_setup.py b/cyberdrop_dl/utils/transfer/first_time_setup.py
index 13b690953..ca51202a4 100644
--- a/cyberdrop_dl/utils/transfer/first_time_setup.py
+++ b/cyberdrop_dl/utils/transfer/first_time_setup.py
@@ -36,11 +36,15 @@ class TransitionManager:
if OLD_APP_STORAGE.exists():
if APP_STORAGE.exists():
+ if APP_STORAGE.with_name("AppData_OLD").exists():
+ APP_STORAGE.rename(APP_STORAGE.with_name("AppData_OLD2"))
APP_STORAGE.rename(APP_STORAGE.with_name("AppData_OLD"))
- OLD_APP_STORAGE.rename(APP_STORAGE)
+ shutil.copytree(OLD_APP_STORAGE, APP_STORAGE, dirs_exist_ok=True)
+ shutil.rmtree(OLD_APP_STORAGE)
if OLD_DOWNLOAD_STORAGE.exists():
shutil.copytree(OLD_DOWNLOAD_STORAGE, DOWNLOAD_STORAGE, dirs_exist_ok=True)
+ shutil.rmtree(OLD_DOWNLOAD_STORAGE)
if Path("./download_history.sqlite").is_file():
transfer_v4_db(Path("./download_history.sqlite"), APP_STORAGE / "Cache" / "cyberdrop.db")
diff --git a/pyproject.toml b/pyproject.toml
index 62047f39a..df2412125 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,6 +1,6 @@
[tool.poetry]
name = "cyberdrop-dl"
-version = "5.0.37"
+version = "5.0.38"
description = "Bulk downloader for multiple file hosts"
authors = ["Jules Winnfield <[email protected]>"]
readme = "README.md"