MCPcopy Create free account
hub / github.com/cztomczak/cefpython / cpdir

Function cpdir

tools/automate.py:1058–1069  ·  view source on GitHub ↗

An equivalent of linux 'cp -r src/* dst/'.

(src, dst)

Source from the content-addressed store, hash-verified

1056
1057
1058def cpdir(src, dst):
1059 """An equivalent of linux 'cp -r src/* dst/'. """
1060 names = os.listdir(src)
1061 if not os.path.exists(dst):
1062 os.makedirs(dst)
1063 for name in names:
1064 path = os.path.join(src, name)
1065 if os.path.isdir(path):
1066 dst_subdir = os.path.join(dst, name)
1067 shutil.copytree(path, dst_subdir)
1068 else:
1069 shutil.copy(path, dst)
1070
1071
1072def mvfiles(src, dst, ext):

Callers 1

create_prebuilt_binariesFunction · 0.85

Calls 1

copyMethod · 0.80

Tested by

no test coverage detected