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)
| 471 | |
| 472 | @tf_export("io.gfile.copy") |
| 473 | def 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"]) |