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

Code Example 1

using System.IO;

public static void Main(string[] args)
{
	string directory = @"C:\folder name";
  
	if (Directory.Exitst(directory)
    {
    	// Directory exits!
    }
    else
    {
    	// Directory dosn't exits.
    }
}

Learn ReactJs, React Native from akashmittal.com