tf.io.gfile.copy

tf.io.gfile.copy(
    src,
    dst,
    overwrite=False
)

Defined in tensorflow/python/lib/io/file_io.py.

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 its an error for newpath to be occupied by an existing file.

Raises:

  • errors.OpError: If the operation fails.