mirror of
https://github.com/Radarr/Radarr.git
synced 2024-11-05 02:22:31 +01:00
Don't list drives that aren't available.
This commit is contained in:
parent
ada5919136
commit
08ebc8d292
@ -380,6 +380,7 @@ public List<DriveInfo> GetDrives()
|
|||||||
{
|
{
|
||||||
return DriveInfo.GetDrives()
|
return DriveInfo.GetDrives()
|
||||||
.Where(d => d.DriveType == DriveType.Fixed || d.DriveType == DriveType.Network)
|
.Where(d => d.DriveType == DriveType.Fixed || d.DriveType == DriveType.Network)
|
||||||
|
.Where(d => d.IsReady)
|
||||||
.ToList();
|
.ToList();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user