Returns file statistics for a given path. Args: path: string, path to a file Returns: FileStatistics struct that contains information about the path Raises: errors.OpError: If the operation fails.
(path)
| 729 | |
| 730 | @tf_export("io.gfile.stat") |
| 731 | def stat_v2(path): |
| 732 | """Returns file statistics for a given path. |
| 733 | |
| 734 | Args: |
| 735 | path: string, path to a file |
| 736 | |
| 737 | Returns: |
| 738 | FileStatistics struct that contains information about the path |
| 739 | |
| 740 | Raises: |
| 741 | errors.OpError: If the operation fails. |
| 742 | """ |
| 743 | file_statistics = pywrap_tensorflow.FileStatistics() |
| 744 | pywrap_tensorflow.Stat(compat.as_bytes(path), file_statistics) |
| 745 | return file_statistics |
| 746 | |
| 747 | |
| 748 | def filecmp(filename_a, filename_b): |
no test coverage detected