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

Commit

Permalink
Try to fix moving to other drive.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jules-WinnfieldX committed Dec 5, 2023
1 parent d6168ee commit 54b12cb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 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.0.37"
__version__ = "5.0.38"
6 changes: 5 additions & 1 deletion cyberdrop_dl/utils/transfer/first_time_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,15 @@ def startup(self) -> None:

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")
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.0.37"
version = "5.0.38"
description = "Bulk downloader for multiple file hosts"
authors = ["Jules Winnfield <[email protected]>"]
readme = "README.md"
Expand Down

0 comments on commit 54b12cb

Please sign in to comment.