Check out example codes for "check if drive exists c#". It will help you in understanding the concepts better.

Code Example 1

DriveInfo.GetDrives().Any(d => d.Name.ToUpper()[0] == 'E');

Learn ReactJs, React Native from akashmittal.com