This commit is contained in:
Евгений Храмов 2023-05-14 16:32:35 +03:00
parent 29940a6644
commit 37b12c8e44

@ -467,9 +467,9 @@ def modextract(id_mod, id_game_workshop):
for dname in dirnames:
os.makedirs(os.path.join(dir_extract, os.path.relpath(os.path.join(dirpath, dname), dir_steam_workshop)), exist_ok=True)
for fname in filenames:
if not os.path.isfile(os.path.join(dir_steam_workshop, fname)) and not os.path.isfile(os.path.join(dir_steam_workshop, fname + ".z")):
os.unlink(os.path.join(dir_extract, fname))
# for fname in filenames:
# if not os.path.isfile(os.path.join(dir_steam_workshop, fname)) and not os.path.isfile(os.path.join(dir_steam_workshop, fname + ".z")):
# os.unlink(os.path.join(dir_extract, fname))
for dname in dirnames:
if not os.path.isdir(os.path.join(dir_steam_workshop, dname)):