From 16c225bb1fa9671f4663e964513087b4fc5670d1 Mon Sep 17 00:00:00 2001 From: MasOnShi Date: Sun, 3 Apr 2022 20:38:48 +0800 Subject: [PATCH] dev commits. --- auto-analysis/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auto-analysis/utils.py b/auto-analysis/utils.py index fa3ceae..56e30a0 100644 --- a/auto-analysis/utils.py +++ b/auto-analysis/utils.py @@ -50,7 +50,7 @@ def patch_file(_key, _iv, to_dir): if not os.path.exists(save_dir): os.makedirs(save_dir) - subprocess.call(["cp", f"{exports_path}/*", save_dir]) + subprocess.call(["cp", "-r", exports_path, save_dir]) patch_file_path = os.path.join(save_dir, "typora.py") content = open(patch_file_path, "r").read() content = content.replace("{AES_KEY}", f"b''.fromhex('{_key}')")