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

Function stat

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

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)

Source from the content-addressed store, hash-verified

713
714@tf_export(v1=["gfile.Stat"])
715def 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")

Callers 1

sizeMethod · 0.70

Calls 1

stat_v2Function · 0.85

Tested by

no test coverage detected