Fixed: File browser ordering and volume name

This commit is contained in:
Mark McDowall
2014-12-20 13:24:29 -08:00
parent d3a35108df
commit 6878804705
4 changed files with 25 additions and 5 deletions
@@ -431,6 +431,13 @@ namespace NzbDrone.Common.Disk
return new FileStream(path, FileMode.Open, FileAccess.Read);
}
public List<DriveInfo> GetDrives()
{
return DriveInfo.GetDrives()
.Where(d => d.DriveType == DriveType.Fixed || d.DriveType == DriveType.Network)
.ToList();
}
public List<DirectoryInfo> GetDirectoryInfos(string path)
{
Ensure.That(path, () => path).IsValidPath();