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

Function move_file_by_pattern

tools/build.py:835–841  ·  view source on GitHub ↗
(pattern, move_to)

Source from the content-addressed store, hash-verified

833
834
835def move_file_by_pattern(pattern, move_to):
836 assert len(pattern) > 2
837 print("[build.py] Move file: {pattern} to {move_to}"
838 .format(pattern=pattern, move_to=move_to))
839 files = glob.glob(pattern)
840 assert(len(files) == 1)
841 os.rename(files[0], move_to)
842
843
844def delete_files_by_pattern(pattern):

Callers 1

build_cefpython_moduleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected