From 341bf371a108c9456b982520d534d9953a521b45 Mon Sep 17 00:00:00 2001 From: xpamych Date: Sun, 14 May 2023 14:33:42 +0300 Subject: [PATCH] =?UTF-8?q?=E2=84=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hlna.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hlna.py b/hlna.py index 65a84e0..c615956 100755 --- a/hlna.py +++ b/hlna.py @@ -382,9 +382,9 @@ def modextract(id_mod, id_game_workshop): for dname in dirnames: os.makedirs(os.path.join(modextractdir, os.path.relpath(os.path.join(dirpath, dname), mod_steam_workshop)), exist_ok=True) - for fname in filenames: - if not os.path.isfile(os.path.join(mod_steam_workshop, fname)) and not os.path.isfile(os.path.join(mod_steam_workshop, fname + ".z")): - os.unlink(os.path.join(modextractdir, fname)) + # for fname in filenames: + # if not os.path.isfile(os.path.join(mod_steam_workshop, fname)) and not os.path.isfile(os.path.join(mod_steam_workshop, fname + ".z")): + # os.unlink(os.path.join(modextractdir, fname)) for dname in dirnames: if not os.path.isdir(os.path.join(mod_steam_workshop, dname)):