Skip to content

Commit

Permalink
Log the list of available drives
Browse files Browse the repository at this point in the history
  • Loading branch information
MihaZupan committed Sep 6, 2024
1 parent 9ab00b0 commit 01e48bf
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Runner/JobBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,12 @@ protected async Task ChangeWorkingDirectoryToRamOrFastestDiskAsync()
{
try
{
DriveInfo[] drives = DriveInfo.GetDrives()
DriveInfo[] drives = DriveInfo.GetDrives();

await LogAsync($"Drives available: {string.Join(", ", drives.Select(
d => $"Ready={d.IsReady} AvailableGB={d.AvailableFreeSpace >> 30} Path={d.RootDirectory.FullName}"))}");

drives = drives
.Where(d => d.IsReady)
.ToArray();

Expand Down

0 comments on commit 01e48bf

Please sign in to comment.