tf.io.gfile.stat

Returns file statistics for a given path.

Compat aliases for migration

See Migration guide for more details.

tf.compat.v1.io.gfile.stat, `tf.compat.v2.io.gfile.stat`

path string, path to a file

FileStatistics struct that contains information about the path

errors.OpError If the operation fails.