A small readonly record type used by the Editor tooling to represent the result of inspecting a model install folder. It stores the model state, path, disk usage, total bytes and an optional problem message, and exposes a boolean helper indicating if the model is usable.
#nullable enable annotations
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using System.Security.Cryptography;
using System.Text.Json;
namespace HumanoidMocap.EditorTools.MotionBricks;
/// <summary>Result of inspecting an install folder.</summary>
public sealed record ModelStatus( ModelState State, string Directory, long BytesOnDisk, long TotalBytes, string? Problem )
{
public bool IsUsable => State is ModelState.Ready or ModelState.Unverified;
}