Skip to content
Snippets Groups Projects
Commit 171a0c1f authored by Niko Ehrenfeuchter's avatar Niko Ehrenfeuchter :keyboard:
Browse files

Add StorageStatus.AllDrivesAboveThreshold

Refers to #20
parent 0fb025f5
Branches
No related tags found
No related merge requests found
......@@ -48,6 +48,21 @@ namespace ATxCommon
}
}
/// <summary>
/// Check if free space on all configured drives is above their threshold.
/// </summary>
/// <returns>False if any of the drives is below its threshold, true otherwise.</returns>
public bool AllDrivesAboveThreshold() {
UpdateFreeSpace();
foreach (var drive in _drives) {
if (drive.DiskSpaceLow()) {
return false;
}
}
return true;
}
/// <summary>
/// Get a dictionary of expired directories from the grace location.
/// </summary>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment