From 4f6a69187365f2012c07cdf1c8b3708e23ab1697 Mon Sep 17 00:00:00 2001 From: FondMemoryVVV Date: Fri, 29 Jul 2022 10:15:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9toolchain=E7=9B=AE=E5=BD=95ta?= =?UTF-8?q?r=5Ffiles.py=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: FondMemoryVVV --- toolchain/libc-test/tar_files.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/toolchain/libc-test/tar_files.py b/toolchain/libc-test/tar_files.py index 6a4444bbc..862eebfda 100644 --- a/toolchain/libc-test/tar_files.py +++ b/toolchain/libc-test/tar_files.py @@ -24,13 +24,13 @@ import shutil copyFileCounts = 0 -def copy_files(sourceDir, targetDir): - for f in os.listdir(sourceDir): - source_files = os.path.join(sourceDir, f) - target_files = os.path.join(targetDir, f) +def copy_files(source_d, target_d): + for f in os.listdir(source_d): + source_files = os.path.join(source_d, f) + target_files = os.path.join(target_d, f) if os.path.isfile(source_files): - if not os.path.exists(targetDir): - os.makedirs(targetDir) + if not os.path.exists(target_d): + os.makedirs(target_d) copyFileCounts += 1 open(target_files, "wb").write(open(source_files, "rb").read()) if os.path.isdir(source_files): -- GitLab