Returns file statistics for a given path. Args: filename: string, path to a file Returns: FileStatistics struct that contains information about the path Raises: errors.OpError: If the operation fails.
(filename)
| 713 | |
| 714 | @tf_export(v1=["gfile.Stat"]) |
| 715 | def stat(filename): |
| 716 | """Returns file statistics for a given path. |
| 717 | |
| 718 | Args: |
| 719 | filename: string, path to a file |
| 720 | |
| 721 | Returns: |
| 722 | FileStatistics struct that contains information about the path |
| 723 | |
| 724 | Raises: |
| 725 | errors.OpError: If the operation fails. |
| 726 | """ |
| 727 | return stat_v2(filename) |
| 728 | |
| 729 | |
| 730 | @tf_export("io.gfile.stat") |