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

Function copy_file

bsp/w60x/makeimg.py:43–50  ·  view source on GitHub ↗
(name, path)

Source from the content-addressed store, hash-verified

41 return stdout_str
42
43def copy_file(name, path):
44 res = True
45 if os.path.exists(path):
46 shutil.copy(path, out_path)
47 else:
48 print('makeimg err! No ' + name + ' file found: ' + path)
49 res = False
50 return res
51
52def is_exists(name, path):
53 res = True

Callers 1

makeimg.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected