System.IO.DirectoryNotFoundException: 'Could not find a part of the path 'B:\REPOS\Program\Program\bin\Debug code example
Example: system.io.directorynotfoundexception c#
if (!Directory.Exists(appDataPath))
{
Directory.CreateDirectory(appDataPath);
}