TensorFlow 2.0 Beta is available Learn more

tf.gfile.Stat

View source on GitHub

Returns file statistics for a given path.

Aliases:

  • tf.compat.v1.gfile.Stat
tf.gfile.Stat(filename)

Args:

  • filename: string, path to a file

Returns:

FileStatistics struct that contains information about the path

Raises:

  • errors.OpError: If the operation fails.