protected void createDicrectoriesIfNotExist(string path) { // if folder not exist if (!Directory.Exists(path)) { Directory.CreateDirectory(path); } }