MCPcopy Create free account
hub / github.com/catboost/catboost / copy_file

Function copy_file

ci/build_all.py:76–80  ·  view source on GitHub ↗
(src: str, dst: str, verbose: bool = False, dry_run: bool = False)

Source from the content-addressed store, hash-verified

74
75
76def copy_file(src: str, dst: str, verbose: bool = False, dry_run: bool = False):
77 if verbose:
78 logging.info(f'Copying file "{src}" to "{dst}"')
79 if not dry_run:
80 shutil.copy2(src, dst)
81
82
83def copy_tree(src: str, dst: str, verbose: bool = False, dry_run: bool = False):

Callers 4

copy_file_closureFunction · 0.70
patch_sourcesFunction · 0.70
build_r_packageFunction · 0.70

Calls 1

infoMethod · 0.45

Tested by

no test coverage detected