From 00c27ad0204c025aecf30019411de86a64dc9510 Mon Sep 17 00:00:00 2001 From: aclist <92275929+aclist@users.noreply.github.com> Date: Tue, 26 May 2026 03:52:11 +0900 Subject: [PATCH] fix: resolve #308 --- dzgui/util/symlink.py | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/dzgui/util/symlink.py b/dzgui/util/symlink.py index ad96e0a..50253b8 100644 --- a/dzgui/util/symlink.py +++ b/dzgui/util/symlink.py @@ -43,11 +43,14 @@ def clone_symlinks(steam_path: Path) -> None: # TODO: test these two operations # use less time intensive logic like the above - for file in exp_path.iterdir(): - if file.is_symlink(): - file.unlink() + try: + for file in exp_path.iterdir(): + if file.is_symlink(): + file.unlink() - for file in dayz_path.iterdir(): - if file.is_symlink(): - uid = file.name - Path(exp_path / uid).symlink_to(dayz_path / uid) + for file in dayz_path.iterdir(): + if file.is_symlink(): + uid = file.name + Path(exp_path / uid).symlink_to(dayz_path / uid) + except Exception as e: + logger.critical(e)