Detect storage space issues during restore.

This commit is contained in:
Alex Hart
2024-11-14 13:26:30 -04:00
committed by Greyson Parrelli
parent b4472833b8
commit 7f1a866e79
14 changed files with 163 additions and 35 deletions

View File

@@ -95,6 +95,10 @@ class ByteSize(val bytes: Long) {
return "${formatter.format(size)}${if (spaced) " " else ""}${unit.label}"
}
operator fun compareTo(other: ByteSize): Int {
return bytes.compareTo(other.bytes)
}
enum class Size(val label: String) {
BYTE("B"),
KIBIBYTE("KB"),