Improve archive restore progress tracking and UX.

This commit is contained in:
Cody Henthorne
2025-09-03 13:31:28 -04:00
committed by Greyson Parrelli
parent 89a0541574
commit 1f40c7ab7e
30 changed files with 1005 additions and 679 deletions
@@ -116,6 +116,23 @@ class ByteSize(val bytes: Long) {
return ByteSize(this.inWholeBytes * other)
}
override fun toString(): String {
return "ByteSize(${toUnitString(maxPlaces = 4, spaced = false)})"
}
override fun equals(other: Any?): Boolean {
if (this === other) return true
if (javaClass != other?.javaClass) return false
other as ByteSize
return bytes == other.bytes
}
override fun hashCode(): Int {
return bytes.hashCode()
}
enum class Size(val label: String) {
BYTE("B"),
KIBIBYTE("KB"),