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

Function copy_file

library/python/fs/__init__.py:280–283  ·  view source on GitHub ↗
(src, dst, copy_function=shutil.copy2)

Source from the content-addressed store, hash-verified

278# throws EnvironmentError (OSError, IOError)
279@errorfix_win
280def copy_file(src, dst, copy_function=shutil.copy2):
281 if os.path.isdir(dst):
282 raise CustomFsError(errno.EISDIR, filename=dst)
283 copy_function(src, dst)
284
285
286# File/directory copy

Callers 2

copy_treeFunction · 0.70
build_extensionMethod · 0.50

Calls 2

CustomFsErrorClass · 0.85
copy_functionFunction · 0.85

Tested by

no test coverage detected