diff --git a/ATxCommon/Serializables/DriveToCheck.cs b/ATxCommon/Serializables/DriveToCheck.cs index a836ec32f9f93bd8d0fd393054e4ca7d2d00cf0f..600ba9cdf074d4296e17ffe6da708d3f7fb2d8e1 100644 --- a/ATxCommon/Serializables/DriveToCheck.cs +++ b/ATxCommon/Serializables/DriveToCheck.cs @@ -22,5 +22,13 @@ namespace ATxCommon.Serializables /// </summary> [XmlIgnore] public long FreeSpace { get; set; } = -1; + + /// <summary> + /// Convenience method to check if this drive's free space is below its threshold. + /// </summary> + /// <returns>True if free space is below the threshold, false otherwise.</returns> + public bool DiskSpaceLow() { + return FreeSpace < SpaceThreshold * Conv.GigaBytes; + } } } \ No newline at end of file