TensorFlow 2.0 Beta is available Learn more

tf.io.gfile.stat

Returns file statistics for a given path.

Aliases:

  • tf.compat.v1.io.gfile.stat
  • tf.compat.v2.io.gfile.stat
  • tf.io.gfile.stat
tf.io.gfile.stat(path)

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

Args:

  • path: string, path to a file

Returns:

FileStatistics struct that contains information about the path

Raises:

  • errors.OpError: If the operation fails.