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

Function mvfiles

tools/automate.py:1072–1080  ·  view source on GitHub ↗

An equivalent of linux 'mv src/*.ext dst/'.

(src, dst, ext)

Source from the content-addressed store, hash-verified

1070
1071
1072def mvfiles(src, dst, ext):
1073 """An equivalent of linux 'mv src/*.ext dst/'. """
1074 names = os.listdir(src)
1075 if not os.path.exists(dst):
1076 os.makedirs(dst)
1077 for name in names:
1078 path = os.path.join(src, name)
1079 if os.path.isfile(path) and name.endswith(ext):
1080 shutil.copy(path, dst)
1081
1082
1083def onerror(func, path, _):

Callers 1

create_prebuilt_binariesFunction · 0.85

Calls 1

copyMethod · 0.80

Tested by

no test coverage detected