MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / copy_v2

Function copy_v2

tensorflow/python/lib/io/file_io.py:473–486  ·  view source on GitHub ↗

Copies data from `src` to `dst`. Args: src: string, name of the file whose contents need to be copied dst: string, name of the file to which to copy to overwrite: boolean, if false it's an error for `dst` to be occupied by an existing file. Raises: errors.OpError: If the

(src, dst, overwrite=False)

Source from the content-addressed store, hash-verified

471
472@tf_export("io.gfile.copy")
473def copy_v2(src, dst, overwrite=False):
474 """Copies data from `src` to `dst`.
475
476 Args:
477 src: string, name of the file whose contents need to be copied
478 dst: string, name of the file to which to copy to
479 overwrite: boolean, if false it's an error for `dst` to be occupied by an
480 existing file.
481
482 Raises:
483 errors.OpError: If the operation fails.
484 """
485 pywrap_tensorflow.CopyFile(
486 compat.as_bytes(src), compat.as_bytes(dst), overwrite)
487
488
489@tf_export(v1=["gfile.Rename"])

Callers 1

copyFunction · 0.85

Calls 1

CopyFileMethod · 0.45

Tested by

no test coverage detected