Join us at TensorFlow World, Oct 28-31. Use code TF20 for 20% off select passes. Register now

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.