Missed TensorFlow World? Check out the recap. Learn more

tf.io.gfile.stat

View source on GitHub

Returns file statistics for a given path.

Aliases:

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

Args:

  • path: string, path to a file

Returns:

FileStatistics struct that contains information about the path

Raises:

  • errors.OpError: If the operation fails.