MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / do_copy_file

Function do_copy_file

tools/mkdist.py:33–43  ·  view source on GitHub ↗
(src, dst)

Source from the content-addressed store, hash-verified

31from SCons.Script import *
32
33def do_copy_file(src, dst):
34 # check source file
35 if not os.path.exists(src):
36 return
37
38 path = os.path.dirname(dst)
39 # mkdir if path not exist
40 if not os.path.exists(path):
41 os.makedirs(path)
42
43 shutil.copy2(src, dst)
44
45def do_copy_folder(src_dir, dst_dir, ignore=None):
46 import shutil

Callers 2

BuildLibInstallActionFunction · 0.90
MkDistFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected