require_admin. Admin-only route handler. This docstring was expanded to make future maintenance easier. Returns: Varies.
()
| 3660 | shutil.copyfileobj(file_storage.stream, out, length=bufsize) |
| 3661 | |
| 3662 | def human_size(n: int) -> str: |
| 3663 | """human_size. |
| 3664 | |
| 3665 | Internal helper function. |
| 3666 | |
| 3667 | This docstring was added automatically to improve maintainability. |
| 3668 | |
| 3669 | Args: |
| 3670 | n: Parameter. |
| 3671 | |
| 3672 | Returns: |
| 3673 | Varies. |
| 3674 | """ |
| 3675 | units = ["B", "KB", "MB", "GB", "TB"] |
| 3676 | x = float(n) |
| 3677 | for u in units: |
| 3678 | if x < 1024.0 or u == units[-1]: |
no test coverage detected