def _get_byte_size_factor(byte_suffix: str) -> int:
    """
    Returns the factor for a specific bytesize.
    """
    byte_suffix = byte_suffix.lower()
    if byte_suffix == "b":
        return 1
    if byte_suffix in ("k", "kb"):
        return 1024
    if byte_suffix in ("m", "mb"):
        return 1024 * 1024
    if byte_suffix in ("g", "gb"):
        return 1024 * 1024 * 1024
    if byte_suffix in ("t", "tb"):
        return 1024 * 1024 * 1024 * 1024

    raise ValueError("Unsupported byte suffix")