Answers for "Create directory if it does not exist"

0

Create directory if it does not exist

string currentPath = Directory.GetCurrentDirectory();
if (!Directory.Exists(Path.Combine(currentPath, "ACH")))
    Directory.CreateDirectory(Path.Combine(currentPath, "ACH"));
//at this point your folder should exist
Posted by: Guest on August-12-2021

Code answers related to "Create directory if it does not exist"

Browse Popular Code Answers by Language