MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / stat_v2

Function stat_v2

tensorflow/python/lib/io/file_io.py:731–745  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

729
730@tf_export("io.gfile.stat")
731def 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
748def filecmp(filename_a, filename_b):

Callers 1

statFunction · 0.85

Calls 2

FileStatisticsMethod · 0.80
StatMethod · 0.45

Tested by

no test coverage detected