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)
| 3076 | return self._stat_result |
| 3077 | |
| 3078 | def get_content_size(self) -> int: |
| 3079 | """Retrieve the total size of the resource at the given path. |
| 3080 | |
| 3081 | This method may be overridden by subclasses. |
| 3082 | |
| 3083 | .. versionadded:: 3.1 |
| 3084 | |
| 3085 | .. versionchanged:: 4.0 |
| 3086 | This method is now always called, instead of only when |
| 3087 | partial results are requested. |
| 3088 | """ |
| 3089 | stat_result = self._stat() |
| 3090 | return stat_result.st_size |
| 3091 | |
| 3092 | def get_modified_time(self) -> Optional[datetime.datetime]: |
| 3093 | """Returns the time that ``self.absolute_path`` was last modified. |