public IList <WebDiskSpaceInformation> GetLocalDiskInformation(string filter = null) { return(DriveInfo.GetDrives() .Select(x => DiskSpaceInformation.GetSpaceInformation(x.Name)) .Filter(filter) .ToList()); }
public IList <WebDiskSpaceInformation> GetAllRecordingDiskInformation() { return(GetCards() .Select(x => x.RecordingFolder).Distinct() .Select(x => DiskSpaceInformation.GetSpaceInformation(x)) .GroupBy(x => x.Disk, (key, list) => list.First()) .ToList()); }
public WebDiskSpaceInformation GetRecordingDiskInformationForCard(int id) { string folder = Card.Retrieve(id).ToWebCard().RecordingFolder; return(DiskSpaceInformation.GetSpaceInformation(folder)); }
public IList <WebDiskSpaceInformation> GetLocalDiskInformation() { return(DriveInfo.GetDrives() .Select(x => DiskSpaceInformation.GetSpaceInformation(x.Name)) .ToList()); }