public bool IsEnoughFreeSpace(string drivePath, long requiredBytes) { var drive = DriveInfo.GetDrives().First(x => x.Name.First() == drivePath.First()); return drive.AvailableFreeSpace > requiredBytes; }