Format size in human-readable form
(self, size: int)
| 129 | return 0 |
| 130 | |
| 131 | def _format_size(self, size: int) -> str: |
| 132 | """Format size in human-readable form""" |
| 133 | for unit in ['B', 'KB', 'MB', 'GB']: |
| 134 | if size < 1024: |
| 135 | return f"{size:.1f} {unit}" |
| 136 | size /= 1024 |
| 137 | return f"{size:.1f} TB" |
| 138 | |
| 139 | def perform_cleanup( |
| 140 | self, |
no outgoing calls
no test coverage detected