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)
| 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. |