public static void CreateDicrectoriesIfNotExist(string directoryPath) { // if folder not exist if (!Directory.Exists(directoryPath)) { Directory.CreateDirectory(directoryPath); } }