MCPcopy Create free account
hub / github.com/EasyIME/PIME / get_content_size

Method get_content_size

python/python3/tornado/web.py:2881–2893  ·  view source on GitHub ↗

Retrieve the total size of the resource at the given path. This method may be overridden by subclasses. .. versionadded:: 3.1 .. versionchanged:: 4.0 This method is now always called, instead of only when partial results are requested.

(self)

Source from the content-addressed store, hash-verified

2879 return self._stat_result
2880
2881 def get_content_size(self) -> int:
2882 """Retrieve the total size of the resource at the given path.
2883
2884 This method may be overridden by subclasses.
2885
2886 .. versionadded:: 3.1
2887
2888 .. versionchanged:: 4.0
2889 This method is now always called, instead of only when
2890 partial results are requested.
2891 """
2892 stat_result = self._stat()
2893 return stat_result.st_size
2894
2895 def get_modified_time(self) -> Optional[datetime.datetime]:
2896 """Returns the time that ``self.absolute_path`` was last modified.

Callers 1

getMethod · 0.95

Calls 1

_statMethod · 0.95

Tested by

no test coverage detected