mirror of
https://github.com/aclist/dztui.git
synced 2026-11-01 23:52:47 +01:00
fix: resolve #308
This commit is contained in:
1 parent
d60204b676
commit
00c27ad020
1 file changed
+10
-7
+10
-7
@@ -43,11 +43,14 @@ def clone_symlinks(steam_path: Path) -> None:
|
|||||||
|
|
||||||
# TODO: test these two operations
|
# TODO: test these two operations
|
||||||
# use less time intensive logic like the above
|
# use less time intensive logic like the above
|
||||||
for file in exp_path.iterdir():
|
try:
|
||||||
if file.is_symlink():
|
for file in exp_path.iterdir():
|
||||||
file.unlink()
|
if file.is_symlink():
|
||||||
|
file.unlink()
|
||||||
|
|
||||||
for file in dayz_path.iterdir():
|
for file in dayz_path.iterdir():
|
||||||
if file.is_symlink():
|
if file.is_symlink():
|
||||||
uid = file.name
|
uid = file.name
|
||||||
Path(exp_path / uid).symlink_to(dayz_path / uid)
|
Path(exp_path / uid).symlink_to(dayz_path / uid)
|
||||||
|
except Exception as e:
|
||||||
|
logger.critical(e)
|
||||||
Reference in new issue
Block a user