提交 4f6a6918 编写于 作者: F FondMemoryVVV

修改toolchain目录tar_files.py文件

Signed-off-by: NFondMemoryVVV <mashuai53@huawei.com>
上级 325b6de9
...@@ -24,13 +24,13 @@ import shutil ...@@ -24,13 +24,13 @@ import shutil
copyFileCounts = 0 copyFileCounts = 0
def copy_files(sourceDir, targetDir): def copy_files(source_d, target_d):
for f in os.listdir(sourceDir): for f in os.listdir(source_d):
source_files = os.path.join(sourceDir, f) source_files = os.path.join(source_d, f)
target_files = os.path.join(targetDir, f) target_files = os.path.join(target_d, f)
if os.path.isfile(source_files): if os.path.isfile(source_files):
if not os.path.exists(targetDir): if not os.path.exists(target_d):
os.makedirs(targetDir) os.makedirs(target_d)
copyFileCounts += 1 copyFileCounts += 1
open(target_files, "wb").write(open(source_files, "rb").read()) open(target_files, "wb").write(open(source_files, "rb").read())
if os.path.isdir(source_files): if os.path.isdir(source_files):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册